home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / WindowMaker / configure < prev    next >
Encoding:
Text File  |  2000-04-02  |  182.3 KB  |  6,400 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  16. ac_help="$ac_help
  17.   --enable-static[=PKGS]  build static libraries [default=yes]"
  18. ac_help="$ac_help
  19.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  20. ac_help="$ac_help
  21.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  22. ac_help="$ac_help
  23.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  24. ac_help="$ac_help
  25.   --with-libs-from      pass compiler flags to look for libraries"
  26. ac_help="$ac_help
  27.   --with-incs-from      pass compiler flags to look for header files"
  28. ac_help="$ac_help
  29.   --with-nlsdir=PATH      specify where the locale stuff should go "
  30. ac_help="$ac_help
  31.   --enable-gnome      enable stuff needed for GNOME "
  32. ac_help="$ac_help
  33.   --enable-kde          enable support for KDE window manager (kwm) hints "
  34. ac_help="$ac_help
  35.   --enable-openlook      enable support for OPEN LOOK(tm) (olwm) hints "
  36. ac_help="$ac_help
  37.   --enable-lite          disable some stuff (dont use it) "
  38. ac_help="$ac_help
  39.   --with-x                use the X Window System"
  40. ac_help="$ac_help
  41.   --disable-locale      disable use of X locale support"
  42. ac_help="$ac_help
  43.   --enable-modelock      XKB keyboard language status support"
  44. ac_help="$ac_help
  45.   --disable-shape      disable shaped window extension support"
  46. ac_help="$ac_help
  47.   --disable-xinerama      disable XInerama extension support"
  48. ac_help="$ac_help
  49.   --disable-shm           disable usage of MIT-SHM extension"
  50. ac_help="$ac_help
  51.   --disable-xpm            disable use of XPM pixmaps through libXpm"
  52. ac_help="$ac_help
  53.   --disable-png            disable PNG support through libpng"
  54. ac_help="$ac_help
  55.   --disable-jpeg      disable JPEG support through libjpeg"
  56. ac_help="$ac_help
  57.   --disable-gif           disable GIF support through libgif or libungif"
  58. ac_help="$ac_help
  59.   --disable-tiff      disable use of TIFF images through libtiff"
  60. ac_help="$ac_help
  61.   --enable-debug      enable debugging "
  62. ac_help="$ac_help
  63.   --disable-sound      disable sound support "
  64. ac_help="$ac_help
  65.   --with-pixmapdir=PATH   specify where pixmaps are located [DATADIR/pixmaps]"
  66. ac_help="$ac_help
  67.   --with-appspath=PATH    specify the directory for GNUstep applications"
  68. ac_help="$ac_help
  69.   --enable-single-icon    create one application icon per WM_INSTANCE+WM_CLASS"
  70. ac_help="$ac_help
  71.   --enable-usermenu       user defined menus for applications
  72. "
  73.  
  74. # Initialize some variables set by options.
  75. # The variables have the same names as the options, with
  76. # dashes changed to underlines.
  77. build=NONE
  78. cache_file=./config.cache
  79. exec_prefix=NONE
  80. host=NONE
  81. no_create=
  82. nonopt=NONE
  83. no_recursion=
  84. prefix=NONE
  85. program_prefix=NONE
  86. program_suffix=NONE
  87. program_transform_name=s,x,x,
  88. silent=
  89. site=
  90. srcdir=
  91. target=NONE
  92. verbose=
  93. x_includes=NONE
  94. x_libraries=NONE
  95. bindir='${exec_prefix}/bin'
  96. sbindir='${exec_prefix}/sbin'
  97. libexecdir='${exec_prefix}/libexec'
  98. datadir='${prefix}/share'
  99. sysconfdir='${prefix}/etc'
  100. sharedstatedir='${prefix}/com'
  101. localstatedir='${prefix}/var'
  102. libdir='${exec_prefix}/lib'
  103. includedir='${prefix}/include'
  104. oldincludedir='/usr/include'
  105. infodir='${prefix}/info'
  106. mandir='${prefix}/man'
  107.  
  108. # Initialize some other variables.
  109. subdirs=
  110. MFLAGS= MAKEFLAGS=
  111. SHELL=${CONFIG_SHELL-/bin/sh}
  112. # Maximum number of lines to put in a shell here document.
  113. ac_max_here_lines=12
  114.  
  115. ac_prev=
  116. for ac_option
  117. do
  118.  
  119.   # If the previous option needs an argument, assign it.
  120.   if test -n "$ac_prev"; then
  121.     eval "$ac_prev=\$ac_option"
  122.     ac_prev=
  123.     continue
  124.   fi
  125.  
  126.   case "$ac_option" in
  127.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  128.   *) ac_optarg= ;;
  129.   esac
  130.  
  131.   # Accept the important Cygnus configure options, so we can diagnose typos.
  132.  
  133.   case "$ac_option" in
  134.  
  135.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  136.     ac_prev=bindir ;;
  137.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  138.     bindir="$ac_optarg" ;;
  139.  
  140.   -build | --build | --buil | --bui | --bu)
  141.     ac_prev=build ;;
  142.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  143.     build="$ac_optarg" ;;
  144.  
  145.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  146.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  147.     ac_prev=cache_file ;;
  148.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  149.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  150.     cache_file="$ac_optarg" ;;
  151.  
  152.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  153.     ac_prev=datadir ;;
  154.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  155.   | --da=*)
  156.     datadir="$ac_optarg" ;;
  157.  
  158.   -disable-* | --disable-*)
  159.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  160.     # Reject names that are not valid shell variable names.
  161.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  162.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  163.     fi
  164.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  165.     eval "enable_${ac_feature}=no" ;;
  166.  
  167.   -enable-* | --enable-*)
  168.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  169.     # Reject names that are not valid shell variable names.
  170.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  171.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  172.     fi
  173.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  174.     case "$ac_option" in
  175.       *=*) ;;
  176.       *) ac_optarg=yes ;;
  177.     esac
  178.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  179.  
  180.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  181.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  182.   | --exec | --exe | --ex)
  183.     ac_prev=exec_prefix ;;
  184.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  185.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  186.   | --exec=* | --exe=* | --ex=*)
  187.     exec_prefix="$ac_optarg" ;;
  188.  
  189.   -gas | --gas | --ga | --g)
  190.     # Obsolete; use --with-gas.
  191.     with_gas=yes ;;
  192.  
  193.   -help | --help | --hel | --he)
  194.     # Omit some internal or obsolete options to make the list less imposing.
  195.     # This message is too long to be a string in the A/UX 3.1 sh.
  196.     cat << EOF
  197. Usage: configure [options] [host]
  198. Options: [defaults in brackets after descriptions]
  199. Configuration:
  200.   --cache-file=FILE       cache test results in FILE
  201.   --help                  print this message
  202.   --no-create             do not create output files
  203.   --quiet, --silent       do not print \`checking...' messages
  204.   --version               print the version of autoconf that created configure
  205. Directory and file names:
  206.   --prefix=PREFIX         install architecture-independent files in PREFIX
  207.                           [$ac_default_prefix]
  208.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  209.                           [same as prefix]
  210.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  211.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  212.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  213.   --datadir=DIR           read-only architecture-independent data in DIR
  214.                           [PREFIX/share]
  215.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  216.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  217.                           [PREFIX/com]
  218.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  219.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  220.   --includedir=DIR        C header files in DIR [PREFIX/include]
  221.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  222.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  223.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  224.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  225.   --program-prefix=PREFIX prepend PREFIX to installed program names
  226.   --program-suffix=SUFFIX append SUFFIX to installed program names
  227.   --program-transform-name=PROGRAM
  228.                           run sed PROGRAM on installed program names
  229. EOF
  230.     cat << EOF
  231. Host type:
  232.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  233.   --host=HOST             configure for HOST [guessed]
  234.   --target=TARGET         configure for TARGET [TARGET=HOST]
  235. Features and packages:
  236.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  237.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  238.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  239.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  240.   --x-includes=DIR        X include files are in DIR
  241.   --x-libraries=DIR       X library files are in DIR
  242. EOF
  243.     if test -n "$ac_help"; then
  244.       echo "--enable and --with options recognized:$ac_help"
  245.     fi
  246.     exit 0 ;;
  247.  
  248.   -host | --host | --hos | --ho)
  249.     ac_prev=host ;;
  250.   -host=* | --host=* | --hos=* | --ho=*)
  251.     host="$ac_optarg" ;;
  252.  
  253.   -includedir | --includedir | --includedi | --included | --include \
  254.   | --includ | --inclu | --incl | --inc)
  255.     ac_prev=includedir ;;
  256.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  257.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  258.     includedir="$ac_optarg" ;;
  259.  
  260.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  261.     ac_prev=infodir ;;
  262.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  263.     infodir="$ac_optarg" ;;
  264.  
  265.   -libdir | --libdir | --libdi | --libd)
  266.     ac_prev=libdir ;;
  267.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  268.     libdir="$ac_optarg" ;;
  269.  
  270.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  271.   | --libexe | --libex | --libe)
  272.     ac_prev=libexecdir ;;
  273.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  274.   | --libexe=* | --libex=* | --libe=*)
  275.     libexecdir="$ac_optarg" ;;
  276.  
  277.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  278.   | --localstate | --localstat | --localsta | --localst \
  279.   | --locals | --local | --loca | --loc | --lo)
  280.     ac_prev=localstatedir ;;
  281.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  282.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  283.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  284.     localstatedir="$ac_optarg" ;;
  285.  
  286.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  287.     ac_prev=mandir ;;
  288.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  289.     mandir="$ac_optarg" ;;
  290.  
  291.   -nfp | --nfp | --nf)
  292.     # Obsolete; use --without-fp.
  293.     with_fp=no ;;
  294.  
  295.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  296.   | --no-cr | --no-c)
  297.     no_create=yes ;;
  298.  
  299.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  300.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  301.     no_recursion=yes ;;
  302.  
  303.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  304.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  305.   | --oldin | --oldi | --old | --ol | --o)
  306.     ac_prev=oldincludedir ;;
  307.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  308.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  309.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  310.     oldincludedir="$ac_optarg" ;;
  311.  
  312.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  313.     ac_prev=prefix ;;
  314.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  315.     prefix="$ac_optarg" ;;
  316.  
  317.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  318.   | --program-pre | --program-pr | --program-p)
  319.     ac_prev=program_prefix ;;
  320.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  321.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  322.     program_prefix="$ac_optarg" ;;
  323.  
  324.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  325.   | --program-suf | --program-su | --program-s)
  326.     ac_prev=program_suffix ;;
  327.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  328.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  329.     program_suffix="$ac_optarg" ;;
  330.  
  331.   -program-transform-name | --program-transform-name \
  332.   | --program-transform-nam | --program-transform-na \
  333.   | --program-transform-n | --program-transform- \
  334.   | --program-transform | --program-transfor \
  335.   | --program-transfo | --program-transf \
  336.   | --program-trans | --program-tran \
  337.   | --progr-tra | --program-tr | --program-t)
  338.     ac_prev=program_transform_name ;;
  339.   -program-transform-name=* | --program-transform-name=* \
  340.   | --program-transform-nam=* | --program-transform-na=* \
  341.   | --program-transform-n=* | --program-transform-=* \
  342.   | --program-transform=* | --program-transfor=* \
  343.   | --program-transfo=* | --program-transf=* \
  344.   | --program-trans=* | --program-tran=* \
  345.   | --progr-tra=* | --program-tr=* | --program-t=*)
  346.     program_transform_name="$ac_optarg" ;;
  347.  
  348.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  349.   | -silent | --silent | --silen | --sile | --sil)
  350.     silent=yes ;;
  351.  
  352.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  353.     ac_prev=sbindir ;;
  354.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  355.   | --sbi=* | --sb=*)
  356.     sbindir="$ac_optarg" ;;
  357.  
  358.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  359.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  360.   | --sharedst | --shareds | --shared | --share | --shar \
  361.   | --sha | --sh)
  362.     ac_prev=sharedstatedir ;;
  363.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  364.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  365.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  366.   | --sha=* | --sh=*)
  367.     sharedstatedir="$ac_optarg" ;;
  368.  
  369.   -site | --site | --sit)
  370.     ac_prev=site ;;
  371.   -site=* | --site=* | --sit=*)
  372.     site="$ac_optarg" ;;
  373.  
  374.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  375.     ac_prev=srcdir ;;
  376.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  377.     srcdir="$ac_optarg" ;;
  378.  
  379.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  380.   | --syscon | --sysco | --sysc | --sys | --sy)
  381.     ac_prev=sysconfdir ;;
  382.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  383.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  384.     sysconfdir="$ac_optarg" ;;
  385.  
  386.   -target | --target | --targe | --targ | --tar | --ta | --t)
  387.     ac_prev=target ;;
  388.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  389.     target="$ac_optarg" ;;
  390.  
  391.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  392.     verbose=yes ;;
  393.  
  394.   -version | --version | --versio | --versi | --vers)
  395.     echo "configure generated by autoconf version 2.13"
  396.     exit 0 ;;
  397.  
  398.   -with-* | --with-*)
  399.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  400.     # Reject names that are not valid shell variable names.
  401.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  402.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  403.     fi
  404.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  405.     case "$ac_option" in
  406.       *=*) ;;
  407.       *) ac_optarg=yes ;;
  408.     esac
  409.     eval "with_${ac_package}='$ac_optarg'" ;;
  410.  
  411.   -without-* | --without-*)
  412.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  413.     # Reject names that are not valid shell variable names.
  414.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  415.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  416.     fi
  417.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  418.     eval "with_${ac_package}=no" ;;
  419.  
  420.   --x)
  421.     # Obsolete; use --with-x.
  422.     with_x=yes ;;
  423.  
  424.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  425.   | --x-incl | --x-inc | --x-in | --x-i)
  426.     ac_prev=x_includes ;;
  427.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  428.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  429.     x_includes="$ac_optarg" ;;
  430.  
  431.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  432.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  433.     ac_prev=x_libraries ;;
  434.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  435.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  436.     x_libraries="$ac_optarg" ;;
  437.  
  438.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  439.     ;;
  440.  
  441.   *)
  442.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  443.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  444.     fi
  445.     if test "x$nonopt" != xNONE; then
  446.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  447.     fi
  448.     nonopt="$ac_option"
  449.     ;;
  450.  
  451.   esac
  452. done
  453.  
  454. if test -n "$ac_prev"; then
  455.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  456. fi
  457.  
  458. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  459.  
  460. # File descriptor usage:
  461. # 0 standard input
  462. # 1 file creation
  463. # 2 errors and warnings
  464. # 3 some systems may open it to /dev/tty
  465. # 4 used on the Kubota Titan
  466. # 6 checking for... messages and results
  467. # 5 compiler messages saved in config.log
  468. if test "$silent" = yes; then
  469.   exec 6>/dev/null
  470. else
  471.   exec 6>&1
  472. fi
  473. exec 5>./config.log
  474.  
  475. echo "\
  476. This file contains any messages produced by compilers while
  477. running configure, to aid debugging if configure makes a mistake.
  478. " 1>&5
  479.  
  480. # Strip out --no-create and --no-recursion so they do not pile up.
  481. # Also quote any args containing shell metacharacters.
  482. ac_configure_args=
  483. for ac_arg
  484. do
  485.   case "$ac_arg" in
  486.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  487.   | --no-cr | --no-c) ;;
  488.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  489.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  490.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  491.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  492.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  493.   esac
  494. done
  495.  
  496. # NLS nuisances.
  497. # Only set these to C if already set.  These must not be set unconditionally
  498. # because not all systems understand e.g. LANG=C (notably SCO).
  499. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  500. # Non-C LC_CTYPE values break the ctype check.
  501. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  502. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  503. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  504. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  505.  
  506. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  507. rm -rf conftest* confdefs.h
  508. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  509. echo > confdefs.h
  510.  
  511. # A filename unique to this package, relative to the directory that
  512. # configure is in, which we can look for to find out if srcdir is correct.
  513. ac_unique_file=src/WindowMaker.h
  514.  
  515. # Find the source files, if location was not specified.
  516. if test -z "$srcdir"; then
  517.   ac_srcdir_defaulted=yes
  518.   # Try the directory containing this script, then its parent.
  519.   ac_prog=$0
  520.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  521.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  522.   srcdir=$ac_confdir
  523.   if test ! -r $srcdir/$ac_unique_file; then
  524.     srcdir=..
  525.   fi
  526. else
  527.   ac_srcdir_defaulted=no
  528. fi
  529. if test ! -r $srcdir/$ac_unique_file; then
  530.   if test "$ac_srcdir_defaulted" = yes; then
  531.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  532.   else
  533.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  534.   fi
  535. fi
  536. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  537.  
  538. # Prefer explicitly selected file to automatically selected ones.
  539. if test -z "$CONFIG_SITE"; then
  540.   if test "x$prefix" != xNONE; then
  541.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  542.   else
  543.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  544.   fi
  545. fi
  546. for ac_site_file in $CONFIG_SITE; do
  547.   if test -r "$ac_site_file"; then
  548.     echo "loading site script $ac_site_file"
  549.     . "$ac_site_file"
  550.   fi
  551. done
  552.  
  553. if test -r "$cache_file"; then
  554.   echo "loading cache $cache_file"
  555.   . $cache_file
  556. else
  557.   echo "creating cache $cache_file"
  558.   > $cache_file
  559. fi
  560.  
  561. ac_ext=c
  562. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  563. ac_cpp='$CPP $CPPFLAGS'
  564. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  565. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  566. cross_compiling=$ac_cv_prog_cc_cross
  567.  
  568. ac_exeext=
  569. ac_objext=o
  570. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  571.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  572.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  573.     ac_n= ac_c='
  574. ' ac_t='    '
  575.   else
  576.     ac_n=-n ac_c= ac_t=
  577.   fi
  578. else
  579.   ac_n= ac_c='\c' ac_t=
  580. fi
  581.  
  582.  
  583.  
  584.  
  585.  
  586. ac_aux_dir=
  587. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  588.   if test -f $ac_dir/install-sh; then
  589.     ac_aux_dir=$ac_dir
  590.     ac_install_sh="$ac_aux_dir/install-sh -c"
  591.     break
  592.   elif test -f $ac_dir/install.sh; then
  593.     ac_aux_dir=$ac_dir
  594.     ac_install_sh="$ac_aux_dir/install.sh -c"
  595.     break
  596.   fi
  597. done
  598. if test -z "$ac_aux_dir"; then
  599.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  600. fi
  601. ac_config_guess=$ac_aux_dir/config.guess
  602. ac_config_sub=$ac_aux_dir/config.sub
  603. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  604.  
  605. # Find a good install program.  We prefer a C program (faster),
  606. # so one script is as good as another.  But avoid the broken or
  607. # incompatible versions:
  608. # SysV /etc/install, /usr/sbin/install
  609. # SunOS /usr/etc/install
  610. # IRIX /sbin/install
  611. # AIX /bin/install
  612. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  613. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  614. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  615. # ./install, which can be erroneously created by make from ./install.sh.
  616. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  617. echo "configure:618: checking for a BSD compatible install" >&5
  618. if test -z "$INSTALL"; then
  619. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  620.   echo $ac_n "(cached) $ac_c" 1>&6
  621. else
  622.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  623.   for ac_dir in $PATH; do
  624.     # Account for people who put trailing slashes in PATH elements.
  625.     case "$ac_dir/" in
  626.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  627.     *)
  628.       # OSF1 and SCO ODT 3.0 have their own names for install.
  629.       # Don't use installbsd from OSF since it installs stuff as root
  630.       # by default.
  631.       for ac_prog in ginstall scoinst install; do
  632.         if test -f $ac_dir/$ac_prog; then
  633.       if test $ac_prog = install &&
  634.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  635.         # AIX install.  It has an incompatible calling convention.
  636.         :
  637.       else
  638.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  639.         break 2
  640.       fi
  641.     fi
  642.       done
  643.       ;;
  644.     esac
  645.   done
  646.   IFS="$ac_save_IFS"
  647.  
  648. fi
  649.   if test "${ac_cv_path_install+set}" = set; then
  650.     INSTALL="$ac_cv_path_install"
  651.   else
  652.     # As a last resort, use the slow shell script.  We don't cache a
  653.     # path for INSTALL within a source directory, because that will
  654.     # break other packages using the cache if that directory is
  655.     # removed, or if the path is relative.
  656.     INSTALL="$ac_install_sh"
  657.   fi
  658. fi
  659. echo "$ac_t""$INSTALL" 1>&6
  660.  
  661. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  662. # It thinks the first close brace ends the variable substitution.
  663. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  664.  
  665. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  666.  
  667. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  668.  
  669. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  670. echo "configure:671: checking whether build environment is sane" >&5
  671. # Just in case
  672. sleep 1
  673. echo timestamp > conftestfile
  674. # Do `set' in a subshell so we don't clobber the current shell's
  675. # arguments.  Must try -L first in case configure is actually a
  676. # symlink; some systems play weird games with the mod time of symlinks
  677. # (eg FreeBSD returns the mod time of the symlink's containing
  678. # directory).
  679. if (
  680.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  681.    if test "$*" = "X"; then
  682.       # -L didn't work.
  683.       set X `ls -t $srcdir/configure conftestfile`
  684.    fi
  685.    if test "$*" != "X $srcdir/configure conftestfile" \
  686.       && test "$*" != "X conftestfile $srcdir/configure"; then
  687.  
  688.       # If neither matched, then we have a broken ls.  This can happen
  689.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  690.       # broken ls alias from the environment.  This has actually
  691.       # happened.  Such a system could not be considered "sane".
  692.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  693. alias in your environment" 1>&2; exit 1; }
  694.    fi
  695.  
  696.    test "$2" = conftestfile
  697.    )
  698. then
  699.    # Ok.
  700.    :
  701. else
  702.    { echo "configure: error: newly created file is older than distributed files!
  703. Check your system clock" 1>&2; exit 1; }
  704. fi
  705. rm -f conftest*
  706. echo "$ac_t""yes" 1>&6
  707. if test "$program_transform_name" = s,x,x,; then
  708.   program_transform_name=
  709. else
  710.   # Double any \ or $.  echo might interpret backslashes.
  711.   cat <<\EOF_SED > conftestsed
  712. s,\\,\\\\,g; s,\$,$$,g
  713. EOF_SED
  714.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  715.   rm -f conftestsed
  716. fi
  717. test "$program_prefix" != NONE &&
  718.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  719. # Use a double $ so make ignores it.
  720. test "$program_suffix" != NONE &&
  721.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  722.  
  723. # sed with no file args requires a program.
  724. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  725.  
  726. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  727. echo "configure:728: checking whether ${MAKE-make} sets \${MAKE}" >&5
  728. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  729. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  730.   echo $ac_n "(cached) $ac_c" 1>&6
  731. else
  732.   cat > conftestmake <<\EOF
  733. all:
  734.     @echo 'ac_maketemp="${MAKE}"'
  735. EOF
  736. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  737. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  738. if test -n "$ac_maketemp"; then
  739.   eval ac_cv_prog_make_${ac_make}_set=yes
  740. else
  741.   eval ac_cv_prog_make_${ac_make}_set=no
  742. fi
  743. rm -f conftestmake
  744. fi
  745. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  746.   echo "$ac_t""yes" 1>&6
  747.   SET_MAKE=
  748. else
  749.   echo "$ac_t""no" 1>&6
  750.   SET_MAKE="MAKE=${MAKE-make}"
  751. fi
  752.  
  753.  
  754. PACKAGE=WindowMaker
  755.  
  756. VERSION=0.62.1
  757.  
  758. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  759.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  760. fi
  761. cat >> confdefs.h <<EOF
  762. #define PACKAGE "$PACKAGE"
  763. EOF
  764.  
  765. cat >> confdefs.h <<EOF
  766. #define VERSION "$VERSION"
  767. EOF
  768.  
  769.  
  770.  
  771. missing_dir=`cd $ac_aux_dir && pwd`
  772. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  773. echo "configure:774: checking for working aclocal" >&5
  774. # Run test in a subshell; some versions of sh will print an error if
  775. # an executable is not found, even if stderr is redirected.
  776. # Redirect stdin to placate older versions of autoconf.  Sigh.
  777. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  778.    ACLOCAL=aclocal
  779.    echo "$ac_t""found" 1>&6
  780. else
  781.    ACLOCAL="$missing_dir/missing aclocal"
  782.    echo "$ac_t""missing" 1>&6
  783. fi
  784.  
  785. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  786. echo "configure:787: checking for working autoconf" >&5
  787. # Run test in a subshell; some versions of sh will print an error if
  788. # an executable is not found, even if stderr is redirected.
  789. # Redirect stdin to placate older versions of autoconf.  Sigh.
  790. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  791.    AUTOCONF=autoconf
  792.    echo "$ac_t""found" 1>&6
  793. else
  794.    AUTOCONF="$missing_dir/missing autoconf"
  795.    echo "$ac_t""missing" 1>&6
  796. fi
  797.  
  798. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  799. echo "configure:800: checking for working automake" >&5
  800. # Run test in a subshell; some versions of sh will print an error if
  801. # an executable is not found, even if stderr is redirected.
  802. # Redirect stdin to placate older versions of autoconf.  Sigh.
  803. if (automake --version) < /dev/null > /dev/null 2>&1; then
  804.    AUTOMAKE=automake
  805.    echo "$ac_t""found" 1>&6
  806. else
  807.    AUTOMAKE="$missing_dir/missing automake"
  808.    echo "$ac_t""missing" 1>&6
  809. fi
  810.  
  811. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  812. echo "configure:813: checking for working autoheader" >&5
  813. # Run test in a subshell; some versions of sh will print an error if
  814. # an executable is not found, even if stderr is redirected.
  815. # Redirect stdin to placate older versions of autoconf.  Sigh.
  816. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  817.    AUTOHEADER=autoheader
  818.    echo "$ac_t""found" 1>&6
  819. else
  820.    AUTOHEADER="$missing_dir/missing autoheader"
  821.    echo "$ac_t""missing" 1>&6
  822. fi
  823.  
  824. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  825. echo "configure:826: checking for working makeinfo" >&5
  826. # Run test in a subshell; some versions of sh will print an error if
  827. # an executable is not found, even if stderr is redirected.
  828. # Redirect stdin to placate older versions of autoconf.  Sigh.
  829. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  830.    MAKEINFO=makeinfo
  831.    echo "$ac_t""found" 1>&6
  832. else
  833.    MAKEINFO="$missing_dir/missing makeinfo"
  834.    echo "$ac_t""missing" 1>&6
  835. fi
  836.  
  837.  
  838.  
  839. # Check whether --enable-shared or --disable-shared was given.
  840. if test "${enable_shared+set}" = set; then
  841.   enableval="$enable_shared"
  842.   p=${PACKAGE-default}
  843. case "$enableval" in
  844. yes) enable_shared=yes ;;
  845. no) enable_shared=no ;;
  846. *)
  847.   enable_shared=no
  848.   # Look at the argument we got.  We use all the common list separators.
  849.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  850.   for pkg in $enableval; do
  851.     if test "X$pkg" = "X$p"; then
  852.       enable_shared=yes
  853.     fi
  854.   done
  855.   IFS="$ac_save_ifs"
  856.   ;;
  857. esac
  858. else
  859.   enable_shared=yes
  860. fi
  861.  
  862. # Check whether --enable-static or --disable-static was given.
  863. if test "${enable_static+set}" = set; then
  864.   enableval="$enable_static"
  865.   p=${PACKAGE-default}
  866. case "$enableval" in
  867. yes) enable_static=yes ;;
  868. no) enable_static=no ;;
  869. *)
  870.   enable_static=no
  871.   # Look at the argument we got.  We use all the common list separators.
  872.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  873.   for pkg in $enableval; do
  874.     if test "X$pkg" = "X$p"; then
  875.       enable_static=yes
  876.     fi
  877.   done
  878.   IFS="$ac_save_ifs"
  879.   ;;
  880. esac
  881. else
  882.   enable_static=yes
  883. fi
  884.  
  885. # Check whether --enable-fast-install or --disable-fast-install was given.
  886. if test "${enable_fast_install+set}" = set; then
  887.   enableval="$enable_fast_install"
  888.   p=${PACKAGE-default}
  889. case "$enableval" in
  890. yes) enable_fast_install=yes ;;
  891. no) enable_fast_install=no ;;
  892. *)
  893.   enable_fast_install=no
  894.   # Look at the argument we got.  We use all the common list separators.
  895.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  896.   for pkg in $enableval; do
  897.     if test "X$pkg" = "X$p"; then
  898.       enable_fast_install=yes
  899.     fi
  900.   done
  901.   IFS="$ac_save_ifs"
  902.   ;;
  903. esac
  904. else
  905.   enable_fast_install=yes
  906. fi
  907.  
  908.  
  909. # Make sure we can run config.sub.
  910. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  911. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  912. fi
  913.  
  914. echo $ac_n "checking host system type""... $ac_c" 1>&6
  915. echo "configure:916: checking host system type" >&5
  916.  
  917. host_alias=$host
  918. case "$host_alias" in
  919. NONE)
  920.   case $nonopt in
  921.   NONE)
  922.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  923.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  924.     fi ;;
  925.   *) host_alias=$nonopt ;;
  926.   esac ;;
  927. esac
  928.  
  929. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  930. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  931. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  932. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  933. echo "$ac_t""$host" 1>&6
  934.  
  935. echo $ac_n "checking build system type""... $ac_c" 1>&6
  936. echo "configure:937: checking build system type" >&5
  937.  
  938. build_alias=$build
  939. case "$build_alias" in
  940. NONE)
  941.   case $nonopt in
  942.   NONE) build_alias=$host_alias ;;
  943.   *) build_alias=$nonopt ;;
  944.   esac ;;
  945. esac
  946.  
  947. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  948. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  949. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  950. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  951. echo "$ac_t""$build" 1>&6
  952.  
  953. # Extract the first word of "ranlib", so it can be a program name with args.
  954. set dummy ranlib; ac_word=$2
  955. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  956. echo "configure:957: checking for $ac_word" >&5
  957. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  958.   echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960.   if test -n "$RANLIB"; then
  961.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  962. else
  963.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  964.   ac_dummy="$PATH"
  965.   for ac_dir in $ac_dummy; do
  966.     test -z "$ac_dir" && ac_dir=.
  967.     if test -f $ac_dir/$ac_word; then
  968.       ac_cv_prog_RANLIB="ranlib"
  969.       break
  970.     fi
  971.   done
  972.   IFS="$ac_save_ifs"
  973.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  974. fi
  975. fi
  976. RANLIB="$ac_cv_prog_RANLIB"
  977. if test -n "$RANLIB"; then
  978.   echo "$ac_t""$RANLIB" 1>&6
  979. else
  980.   echo "$ac_t""no" 1>&6
  981. fi
  982.  
  983. # Extract the first word of "gcc", so it can be a program name with args.
  984. set dummy gcc; ac_word=$2
  985. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  986. echo "configure:987: checking for $ac_word" >&5
  987. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  988.   echo $ac_n "(cached) $ac_c" 1>&6
  989. else
  990.   if test -n "$CC"; then
  991.   ac_cv_prog_CC="$CC" # Let the user override the test.
  992. else
  993.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  994.   ac_dummy="$PATH"
  995.   for ac_dir in $ac_dummy; do
  996.     test -z "$ac_dir" && ac_dir=.
  997.     if test -f $ac_dir/$ac_word; then
  998.       ac_cv_prog_CC="gcc"
  999.       break
  1000.     fi
  1001.   done
  1002.   IFS="$ac_save_ifs"
  1003. fi
  1004. fi
  1005. CC="$ac_cv_prog_CC"
  1006. if test -n "$CC"; then
  1007.   echo "$ac_t""$CC" 1>&6
  1008. else
  1009.   echo "$ac_t""no" 1>&6
  1010. fi
  1011.  
  1012. if test -z "$CC"; then
  1013.   # Extract the first word of "cc", so it can be a program name with args.
  1014. set dummy cc; ac_word=$2
  1015. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1016. echo "configure:1017: checking for $ac_word" >&5
  1017. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1018.   echo $ac_n "(cached) $ac_c" 1>&6
  1019. else
  1020.   if test -n "$CC"; then
  1021.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1022. else
  1023.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1024.   ac_prog_rejected=no
  1025.   ac_dummy="$PATH"
  1026.   for ac_dir in $ac_dummy; do
  1027.     test -z "$ac_dir" && ac_dir=.
  1028.     if test -f $ac_dir/$ac_word; then
  1029.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1030.         ac_prog_rejected=yes
  1031.     continue
  1032.       fi
  1033.       ac_cv_prog_CC="cc"
  1034.       break
  1035.     fi
  1036.   done
  1037.   IFS="$ac_save_ifs"
  1038. if test $ac_prog_rejected = yes; then
  1039.   # We found a bogon in the path, so make sure we never use it.
  1040.   set dummy $ac_cv_prog_CC
  1041.   shift
  1042.   if test $# -gt 0; then
  1043.     # We chose a different compiler from the bogus one.
  1044.     # However, it has the same basename, so the bogon will be chosen
  1045.     # first if we set CC to just the basename; use the full file name.
  1046.     shift
  1047.     set dummy "$ac_dir/$ac_word" "$@"
  1048.     shift
  1049.     ac_cv_prog_CC="$@"
  1050.   fi
  1051. fi
  1052. fi
  1053. fi
  1054. CC="$ac_cv_prog_CC"
  1055. if test -n "$CC"; then
  1056.   echo "$ac_t""$CC" 1>&6
  1057. else
  1058.   echo "$ac_t""no" 1>&6
  1059. fi
  1060.  
  1061.   if test -z "$CC"; then
  1062.     case "`uname -s`" in
  1063.     *win32* | *WIN32*)
  1064.       # Extract the first word of "cl", so it can be a program name with args.
  1065. set dummy cl; ac_word=$2
  1066. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1067. echo "configure:1068: checking for $ac_word" >&5
  1068. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1069.   echo $ac_n "(cached) $ac_c" 1>&6
  1070. else
  1071.   if test -n "$CC"; then
  1072.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1073. else
  1074.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1075.   ac_dummy="$PATH"
  1076.   for ac_dir in $ac_dummy; do
  1077.     test -z "$ac_dir" && ac_dir=.
  1078.     if test -f $ac_dir/$ac_word; then
  1079.       ac_cv_prog_CC="cl"
  1080.       break
  1081.     fi
  1082.   done
  1083.   IFS="$ac_save_ifs"
  1084. fi
  1085. fi
  1086. CC="$ac_cv_prog_CC"
  1087. if test -n "$CC"; then
  1088.   echo "$ac_t""$CC" 1>&6
  1089. else
  1090.   echo "$ac_t""no" 1>&6
  1091. fi
  1092.  ;;
  1093.     esac
  1094.   fi
  1095.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1096. fi
  1097.  
  1098. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1099. echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1100.  
  1101. ac_ext=c
  1102. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1103. ac_cpp='$CPP $CPPFLAGS'
  1104. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1105. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1106. cross_compiling=$ac_cv_prog_cc_cross
  1107.  
  1108. cat > conftest.$ac_ext << EOF
  1109.  
  1110. #line 1111 "configure"
  1111. #include "confdefs.h"
  1112.  
  1113. main(){return(0);}
  1114. EOF
  1115. if { (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1116.   ac_cv_prog_cc_works=yes
  1117.   # If we can't run a trivial program, we are probably using a cross compiler.
  1118.   if (./conftest; exit) 2>/dev/null; then
  1119.     ac_cv_prog_cc_cross=no
  1120.   else
  1121.     ac_cv_prog_cc_cross=yes
  1122.   fi
  1123. else
  1124.   echo "configure: failed program was:" >&5
  1125.   cat conftest.$ac_ext >&5
  1126.   ac_cv_prog_cc_works=no
  1127. fi
  1128. rm -fr conftest*
  1129. ac_ext=c
  1130. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1131. ac_cpp='$CPP $CPPFLAGS'
  1132. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1133. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1134. cross_compiling=$ac_cv_prog_cc_cross
  1135.  
  1136. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1137. if test $ac_cv_prog_cc_works = no; then
  1138.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1139. fi
  1140. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1141. echo "configure:1142: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1142. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1143. cross_compiling=$ac_cv_prog_cc_cross
  1144.  
  1145. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1146. echo "configure:1147: checking whether we are using GNU C" >&5
  1147. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1148.   echo $ac_n "(cached) $ac_c" 1>&6
  1149. else
  1150.   cat > conftest.c <<EOF
  1151. #ifdef __GNUC__
  1152.   yes;
  1153. #endif
  1154. EOF
  1155. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1156.   ac_cv_prog_gcc=yes
  1157. else
  1158.   ac_cv_prog_gcc=no
  1159. fi
  1160. fi
  1161.  
  1162. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1163.  
  1164. if test $ac_cv_prog_gcc = yes; then
  1165.   GCC=yes
  1166. else
  1167.   GCC=
  1168. fi
  1169.  
  1170. ac_test_CFLAGS="${CFLAGS+set}"
  1171. ac_save_CFLAGS="$CFLAGS"
  1172. CFLAGS=
  1173. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1174. echo "configure:1175: checking whether ${CC-cc} accepts -g" >&5
  1175. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1176.   echo $ac_n "(cached) $ac_c" 1>&6
  1177. else
  1178.   echo 'void f(){}' > conftest.c
  1179. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1180.   ac_cv_prog_cc_g=yes
  1181. else
  1182.   ac_cv_prog_cc_g=no
  1183. fi
  1184. rm -f conftest*
  1185.  
  1186. fi
  1187.  
  1188. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1189. if test "$ac_test_CFLAGS" = set; then
  1190.   CFLAGS="$ac_save_CFLAGS"
  1191. elif test $ac_cv_prog_cc_g = yes; then
  1192.   if test "$GCC" = yes; then
  1193.     CFLAGS="-g -O2"
  1194.   else
  1195.     CFLAGS="-g"
  1196.   fi
  1197. else
  1198.   if test "$GCC" = yes; then
  1199.     CFLAGS="-O2"
  1200.   else
  1201.     CFLAGS=
  1202.   fi
  1203. fi
  1204.  
  1205. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1206. if test "${with_gnu_ld+set}" = set; then
  1207.   withval="$with_gnu_ld"
  1208.   test "$withval" = no || with_gnu_ld=yes
  1209. else
  1210.   with_gnu_ld=no
  1211. fi
  1212.  
  1213. ac_prog=ld
  1214. if test "$ac_cv_prog_gcc" = yes; then
  1215.   # Check if gcc -print-prog-name=ld gives a path.
  1216.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1217. echo "configure:1218: checking for ld used by GCC" >&5
  1218.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1219.   case "$ac_prog" in
  1220.     # Accept absolute paths.
  1221.     [\\/]* | [A-Za-z]:[\\/]*)
  1222.       re_direlt='/[^/][^/]*/\.\./'
  1223.       # Canonicalize the path of ld
  1224.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1225.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1226.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1227.       done
  1228.       test -z "$LD" && LD="$ac_prog"
  1229.       ;;
  1230.   "")
  1231.     # If it fails, then pretend we aren't using GCC.
  1232.     ac_prog=ld
  1233.     ;;
  1234.   *)
  1235.     # If it is relative, then search for the first ld in PATH.
  1236.     with_gnu_ld=unknown
  1237.     ;;
  1238.   esac
  1239. elif test "$with_gnu_ld" = yes; then
  1240.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1241. echo "configure:1242: checking for GNU ld" >&5
  1242. else
  1243.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1244. echo "configure:1245: checking for non-GNU ld" >&5
  1245. fi
  1246. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1247.   echo $ac_n "(cached) $ac_c" 1>&6
  1248. else
  1249.   if test -z "$LD"; then
  1250.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1251.   for ac_dir in $PATH; do
  1252.     test -z "$ac_dir" && ac_dir=.
  1253.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1254.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1255.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1256.       # but apparently some GNU ld's only accept -v.
  1257.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1258.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1259.     test "$with_gnu_ld" != no && break
  1260.       else
  1261.     test "$with_gnu_ld" != yes && break
  1262.       fi
  1263.     fi
  1264.   done
  1265.   IFS="$ac_save_ifs"
  1266. else
  1267.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1268. fi
  1269. fi
  1270.  
  1271. LD="$ac_cv_path_LD"
  1272. if test -n "$LD"; then
  1273.   echo "$ac_t""$LD" 1>&6
  1274. else
  1275.   echo "$ac_t""no" 1>&6
  1276. fi
  1277. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1278. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1279. echo "configure:1280: checking if the linker ($LD) is GNU ld" >&5
  1280. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1281.   echo $ac_n "(cached) $ac_c" 1>&6
  1282. else
  1283.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1284. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1285.   ac_cv_prog_gnu_ld=yes
  1286. else
  1287.   ac_cv_prog_gnu_ld=no
  1288. fi
  1289. fi
  1290.  
  1291. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1292.  
  1293.  
  1294. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1295. echo "configure:1296: checking for BSD-compatible nm" >&5
  1296. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1297.   echo $ac_n "(cached) $ac_c" 1>&6
  1298. else
  1299.   if test -n "$NM"; then
  1300.   # Let the user override the test.
  1301.   ac_cv_path_NM="$NM"
  1302. else
  1303.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1304.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1305.     test -z "$ac_dir" && ac_dir=.
  1306.     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1307.       # Check to see if the nm accepts a BSD-compat flag.
  1308.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1309.       #   nm: unknown option "B" ignored
  1310.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1311.     ac_cv_path_NM="$ac_dir/nm -B"
  1312.     break
  1313.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1314.     ac_cv_path_NM="$ac_dir/nm -p"
  1315.     break
  1316.       else
  1317.     ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1318.     continue # so that we can try to find one that supports BSD flags
  1319.       fi
  1320.     fi
  1321.   done
  1322.   IFS="$ac_save_ifs"
  1323.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1324. fi
  1325. fi
  1326.  
  1327. NM="$ac_cv_path_NM"
  1328. echo "$ac_t""$NM" 1>&6
  1329.  
  1330. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1331. echo "configure:1332: checking whether ln -s works" >&5
  1332. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1333.   echo $ac_n "(cached) $ac_c" 1>&6
  1334. else
  1335.   rm -f conftestdata
  1336. if ln -s X conftestdata 2>/dev/null
  1337. then
  1338.   rm -f conftestdata
  1339.   ac_cv_prog_LN_S="ln -s"
  1340. else
  1341.   ac_cv_prog_LN_S=ln
  1342. fi
  1343. fi
  1344. LN_S="$ac_cv_prog_LN_S"
  1345. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1346.   echo "$ac_t""yes" 1>&6
  1347. else
  1348.   echo "$ac_t""no" 1>&6
  1349. fi
  1350.  
  1351.  
  1352. case "$target" in
  1353. NONE) lt_target="$host" ;;
  1354. *) lt_target="$target" ;;
  1355. esac
  1356.  
  1357. # Check for any special flags to pass to ltconfig.
  1358. libtool_flags="--cache-file=$cache_file"
  1359. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1360. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1361. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1362. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1363. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1364.  
  1365.  
  1366. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1367. if test "${enable_libtool_lock+set}" = set; then
  1368.   enableval="$enable_libtool_lock"
  1369.   :
  1370. fi
  1371.  
  1372. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1373. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1374.  
  1375. # Some flags need to be propagated to the compiler or linker for good
  1376. # libtool support.
  1377. case "$lt_target" in
  1378. *-*-irix6*)
  1379.   # Find out which ABI we are using.
  1380.   echo '#line 1381 "configure"' > conftest.$ac_ext
  1381.   if { (eval echo configure:1382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1382.     case "`/usr/bin/file conftest.o`" in
  1383.     *32-bit*)
  1384.       LD="${LD-ld} -32"
  1385.       ;;
  1386.     *N32*)
  1387.       LD="${LD-ld} -n32"
  1388.       ;;
  1389.     *64-bit*)
  1390.       LD="${LD-ld} -64"
  1391.       ;;
  1392.     esac
  1393.   fi
  1394.   rm -rf conftest*
  1395.   ;;
  1396.  
  1397. *-*-sco3.2v5*)
  1398.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1399.   SAVE_CFLAGS="$CFLAGS"
  1400.   CFLAGS="$CFLAGS -belf"
  1401.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1402. echo "configure:1403: checking whether the C compiler needs -belf" >&5
  1403. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1404.   echo $ac_n "(cached) $ac_c" 1>&6
  1405. else
  1406.   cat > conftest.$ac_ext <<EOF
  1407. #line 1408 "configure"
  1408. #include "confdefs.h"
  1409.  
  1410. int main() {
  1411.  
  1412. ; return 0; }
  1413. EOF
  1414. if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1415.   rm -rf conftest*
  1416.   lt_cv_cc_needs_belf=yes
  1417. else
  1418.   echo "configure: failed program was:" >&5
  1419.   cat conftest.$ac_ext >&5
  1420.   rm -rf conftest*
  1421.   lt_cv_cc_needs_belf=no
  1422. fi
  1423. rm -f conftest*
  1424. fi
  1425.  
  1426. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1427.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1428.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1429.     CFLAGS="$SAVE_CFLAGS"
  1430.   fi
  1431.   ;;
  1432.  
  1433.  
  1434. esac
  1435.  
  1436.  
  1437. # Save cache, so that ltconfig can load it
  1438. cat > confcache <<\EOF
  1439. # This file is a shell script that caches the results of configure
  1440. # tests run on this system so they can be shared between configure
  1441. # scripts and configure runs.  It is not useful on other systems.
  1442. # If it contains results you don't want to keep, you may remove or edit it.
  1443. #
  1444. # By default, configure uses ./config.cache as the cache file,
  1445. # creating it if it does not exist already.  You can give configure
  1446. # the --cache-file=FILE option to use a different cache file; that is
  1447. # what configure does when it calls configure scripts in
  1448. # subdirectories, so they share the cache.
  1449. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1450. # config.status only pays attention to the cache file if you give it the
  1451. # --recheck option to rerun configure.
  1452. #
  1453. EOF
  1454. # The following way of writing the cache mishandles newlines in values,
  1455. # but we know of no workaround that is simple, portable, and efficient.
  1456. # So, don't put newlines in cache variables' values.
  1457. # Ultrix sh set writes to stderr and can't be redirected directly,
  1458. # and sets the high bit in the cache file unless we assign to the vars.
  1459. (set) 2>&1 |
  1460.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1461.   *ac_space=\ *)
  1462.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1463.     # turns \\\\ into \\, and sed turns \\ into \).
  1464.     sed -n \
  1465.       -e "s/'/'\\\\''/g" \
  1466.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1467.     ;;
  1468.   *)
  1469.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1470.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1471.     ;;
  1472.   esac >> confcache
  1473. if cmp -s $cache_file confcache; then
  1474.   :
  1475. else
  1476.   if test -w $cache_file; then
  1477.     echo "updating cache $cache_file"
  1478.     cat confcache > $cache_file
  1479.   else
  1480.     echo "not updating unwritable cache $cache_file"
  1481.   fi
  1482. fi
  1483. rm -f confcache
  1484.  
  1485.  
  1486. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1487. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1488. LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1489. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1490. DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1491. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1492. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  1493. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1494.  
  1495. # Reload cache, that may have been modified by ltconfig
  1496. if test -r "$cache_file"; then
  1497.   echo "loading cache $cache_file"
  1498.   . $cache_file
  1499. else
  1500.   echo "creating cache $cache_file"
  1501.   > $cache_file
  1502. fi
  1503.  
  1504.  
  1505. # This can be used to rebuild libtool when needed
  1506. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1507.  
  1508. # Always use our own libtool.
  1509. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1510.  
  1511. # Redirect the config.log output again, so that the ltconfig log is not
  1512. # clobbered by the next message.
  1513. exec 5>>./config.log
  1514.  
  1515.  
  1516. # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
  1517. # Turn around -rpath problem with libtool 1.0c
  1518. # This define should be improbable enough to not conflict with anything
  1519. case ${host} in
  1520.   *-pc-linux-gnu)
  1521.     echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
  1522.     sed < libtool > libtool-2 \
  1523.     's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
  1524.     mv libtool-2 libtool
  1525.     chmod 755 libtool
  1526.   ;;
  1527. esac
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536. # Make sure we can run config.sub.
  1537. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1538. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1539. fi
  1540.  
  1541. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1542. echo "configure:1543: checking host system type" >&5
  1543.  
  1544. host_alias=$host
  1545. case "$host_alias" in
  1546. NONE)
  1547.   case $nonopt in
  1548.   NONE)
  1549.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1550.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1551.     fi ;;
  1552.   *) host_alias=$nonopt ;;
  1553.   esac ;;
  1554. esac
  1555.  
  1556. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1557. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1558. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1559. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1560. echo "$ac_t""$host" 1>&6
  1561.  
  1562.  
  1563.  
  1564. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1565. echo "configure:1566: checking for POSIXized ISC" >&5
  1566. if test -d /etc/conf/kconfig.d &&
  1567.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1568. then
  1569.   echo "$ac_t""yes" 1>&6
  1570.   ISC=yes # If later tests want to check for ISC.
  1571.   cat >> confdefs.h <<\EOF
  1572. #define _POSIX_SOURCE 1
  1573. EOF
  1574.  
  1575.   if test "$GCC" = yes; then
  1576.     CC="$CC -posix"
  1577.   else
  1578.     CC="$CC -Xp"
  1579.   fi
  1580. else
  1581.   echo "$ac_t""no" 1>&6
  1582.   ISC=
  1583. fi
  1584.  
  1585. # Extract the first word of "gcc", so it can be a program name with args.
  1586. set dummy gcc; ac_word=$2
  1587. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1588. echo "configure:1589: checking for $ac_word" >&5
  1589. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1590.   echo $ac_n "(cached) $ac_c" 1>&6
  1591. else
  1592.   if test -n "$CC"; then
  1593.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1594. else
  1595.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1596.   ac_dummy="$PATH"
  1597.   for ac_dir in $ac_dummy; do
  1598.     test -z "$ac_dir" && ac_dir=.
  1599.     if test -f $ac_dir/$ac_word; then
  1600.       ac_cv_prog_CC="gcc"
  1601.       break
  1602.     fi
  1603.   done
  1604.   IFS="$ac_save_ifs"
  1605. fi
  1606. fi
  1607. CC="$ac_cv_prog_CC"
  1608. if test -n "$CC"; then
  1609.   echo "$ac_t""$CC" 1>&6
  1610. else
  1611.   echo "$ac_t""no" 1>&6
  1612. fi
  1613.  
  1614. if test -z "$CC"; then
  1615.   # Extract the first word of "cc", so it can be a program name with args.
  1616. set dummy cc; ac_word=$2
  1617. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1618. echo "configure:1619: checking for $ac_word" >&5
  1619. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1620.   echo $ac_n "(cached) $ac_c" 1>&6
  1621. else
  1622.   if test -n "$CC"; then
  1623.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1624. else
  1625.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1626.   ac_prog_rejected=no
  1627.   ac_dummy="$PATH"
  1628.   for ac_dir in $ac_dummy; do
  1629.     test -z "$ac_dir" && ac_dir=.
  1630.     if test -f $ac_dir/$ac_word; then
  1631.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1632.         ac_prog_rejected=yes
  1633.     continue
  1634.       fi
  1635.       ac_cv_prog_CC="cc"
  1636.       break
  1637.     fi
  1638.   done
  1639.   IFS="$ac_save_ifs"
  1640. if test $ac_prog_rejected = yes; then
  1641.   # We found a bogon in the path, so make sure we never use it.
  1642.   set dummy $ac_cv_prog_CC
  1643.   shift
  1644.   if test $# -gt 0; then
  1645.     # We chose a different compiler from the bogus one.
  1646.     # However, it has the same basename, so the bogon will be chosen
  1647.     # first if we set CC to just the basename; use the full file name.
  1648.     shift
  1649.     set dummy "$ac_dir/$ac_word" "$@"
  1650.     shift
  1651.     ac_cv_prog_CC="$@"
  1652.   fi
  1653. fi
  1654. fi
  1655. fi
  1656. CC="$ac_cv_prog_CC"
  1657. if test -n "$CC"; then
  1658.   echo "$ac_t""$CC" 1>&6
  1659. else
  1660.   echo "$ac_t""no" 1>&6
  1661. fi
  1662.  
  1663.   if test -z "$CC"; then
  1664.     case "`uname -s`" in
  1665.     *win32* | *WIN32*)
  1666.       # Extract the first word of "cl", so it can be a program name with args.
  1667. set dummy cl; ac_word=$2
  1668. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1669. echo "configure:1670: checking for $ac_word" >&5
  1670. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1671.   echo $ac_n "(cached) $ac_c" 1>&6
  1672. else
  1673.   if test -n "$CC"; then
  1674.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1675. else
  1676.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1677.   ac_dummy="$PATH"
  1678.   for ac_dir in $ac_dummy; do
  1679.     test -z "$ac_dir" && ac_dir=.
  1680.     if test -f $ac_dir/$ac_word; then
  1681.       ac_cv_prog_CC="cl"
  1682.       break
  1683.     fi
  1684.   done
  1685.   IFS="$ac_save_ifs"
  1686. fi
  1687. fi
  1688. CC="$ac_cv_prog_CC"
  1689. if test -n "$CC"; then
  1690.   echo "$ac_t""$CC" 1>&6
  1691. else
  1692.   echo "$ac_t""no" 1>&6
  1693. fi
  1694.  ;;
  1695.     esac
  1696.   fi
  1697.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1698. fi
  1699.  
  1700. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1701. echo "configure:1702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1702.  
  1703. ac_ext=c
  1704. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1705. ac_cpp='$CPP $CPPFLAGS'
  1706. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1707. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1708. cross_compiling=$ac_cv_prog_cc_cross
  1709.  
  1710. cat > conftest.$ac_ext << EOF
  1711.  
  1712. #line 1713 "configure"
  1713. #include "confdefs.h"
  1714.  
  1715. main(){return(0);}
  1716. EOF
  1717. if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1718.   ac_cv_prog_cc_works=yes
  1719.   # If we can't run a trivial program, we are probably using a cross compiler.
  1720.   if (./conftest; exit) 2>/dev/null; then
  1721.     ac_cv_prog_cc_cross=no
  1722.   else
  1723.     ac_cv_prog_cc_cross=yes
  1724.   fi
  1725. else
  1726.   echo "configure: failed program was:" >&5
  1727.   cat conftest.$ac_ext >&5
  1728.   ac_cv_prog_cc_works=no
  1729. fi
  1730. rm -fr conftest*
  1731. ac_ext=c
  1732. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1733. ac_cpp='$CPP $CPPFLAGS'
  1734. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1735. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1736. cross_compiling=$ac_cv_prog_cc_cross
  1737.  
  1738. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1739. if test $ac_cv_prog_cc_works = no; then
  1740.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1741. fi
  1742. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1743. echo "configure:1744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1744. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1745. cross_compiling=$ac_cv_prog_cc_cross
  1746.  
  1747. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1748. echo "configure:1749: checking whether we are using GNU C" >&5
  1749. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1750.   echo $ac_n "(cached) $ac_c" 1>&6
  1751. else
  1752.   cat > conftest.c <<EOF
  1753. #ifdef __GNUC__
  1754.   yes;
  1755. #endif
  1756. EOF
  1757. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1758.   ac_cv_prog_gcc=yes
  1759. else
  1760.   ac_cv_prog_gcc=no
  1761. fi
  1762. fi
  1763.  
  1764. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1765.  
  1766. if test $ac_cv_prog_gcc = yes; then
  1767.   GCC=yes
  1768. else
  1769.   GCC=
  1770. fi
  1771.  
  1772. ac_test_CFLAGS="${CFLAGS+set}"
  1773. ac_save_CFLAGS="$CFLAGS"
  1774. CFLAGS=
  1775. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1776. echo "configure:1777: checking whether ${CC-cc} accepts -g" >&5
  1777. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1778.   echo $ac_n "(cached) $ac_c" 1>&6
  1779. else
  1780.   echo 'void f(){}' > conftest.c
  1781. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1782.   ac_cv_prog_cc_g=yes
  1783. else
  1784.   ac_cv_prog_cc_g=no
  1785. fi
  1786. rm -f conftest*
  1787.  
  1788. fi
  1789.  
  1790. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1791. if test "$ac_test_CFLAGS" = set; then
  1792.   CFLAGS="$ac_save_CFLAGS"
  1793. elif test $ac_cv_prog_cc_g = yes; then
  1794.   if test "$GCC" = yes; then
  1795.     CFLAGS="-g -O2"
  1796.   else
  1797.     CFLAGS="-g"
  1798.   fi
  1799. else
  1800.   if test "$GCC" = yes; then
  1801.     CFLAGS="-O2"
  1802.   else
  1803.     CFLAGS=
  1804.   fi
  1805. fi
  1806.  
  1807. #AC_PROG_RANLIB
  1808. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1809. echo "configure:1810: checking whether ln -s works" >&5
  1810. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1811.   echo $ac_n "(cached) $ac_c" 1>&6
  1812. else
  1813.   rm -f conftestdata
  1814. if ln -s X conftestdata 2>/dev/null
  1815. then
  1816.   rm -f conftestdata
  1817.   ac_cv_prog_LN_S="ln -s"
  1818. else
  1819.   ac_cv_prog_LN_S=ln
  1820. fi
  1821. fi
  1822. LN_S="$ac_cv_prog_LN_S"
  1823. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1824.   echo "$ac_t""yes" 1>&6
  1825. else
  1826.   echo "$ac_t""no" 1>&6
  1827. fi
  1828.  
  1829. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1830. echo "configure:1831: checking how to run the C preprocessor" >&5
  1831. # On Suns, sometimes $CPP names a directory.
  1832. if test -n "$CPP" && test -d "$CPP"; then
  1833.   CPP=
  1834. fi
  1835. if test -z "$CPP"; then
  1836. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1837.   echo $ac_n "(cached) $ac_c" 1>&6
  1838. else
  1839.     # This must be in double quotes, not single quotes, because CPP may get
  1840.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1841.   CPP="${CC-cc} -E"
  1842.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1843.   # not just through cpp.
  1844.   cat > conftest.$ac_ext <<EOF
  1845. #line 1846 "configure"
  1846. #include "confdefs.h"
  1847. #include <assert.h>
  1848. Syntax Error
  1849. EOF
  1850. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1851. { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1852. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1853. if test -z "$ac_err"; then
  1854.   :
  1855. else
  1856.   echo "$ac_err" >&5
  1857.   echo "configure: failed program was:" >&5
  1858.   cat conftest.$ac_ext >&5
  1859.   rm -rf conftest*
  1860.   CPP="${CC-cc} -E -traditional-cpp"
  1861.   cat > conftest.$ac_ext <<EOF
  1862. #line 1863 "configure"
  1863. #include "confdefs.h"
  1864. #include <assert.h>
  1865. Syntax Error
  1866. EOF
  1867. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1868. { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1869. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1870. if test -z "$ac_err"; then
  1871.   :
  1872. else
  1873.   echo "$ac_err" >&5
  1874.   echo "configure: failed program was:" >&5
  1875.   cat conftest.$ac_ext >&5
  1876.   rm -rf conftest*
  1877.   CPP="${CC-cc} -nologo -E"
  1878.   cat > conftest.$ac_ext <<EOF
  1879. #line 1880 "configure"
  1880. #include "confdefs.h"
  1881. #include <assert.h>
  1882. Syntax Error
  1883. EOF
  1884. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1885. { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1886. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1887. if test -z "$ac_err"; then
  1888.   :
  1889. else
  1890.   echo "$ac_err" >&5
  1891.   echo "configure: failed program was:" >&5
  1892.   cat conftest.$ac_ext >&5
  1893.   rm -rf conftest*
  1894.   CPP=/lib/cpp
  1895. fi
  1896. rm -f conftest*
  1897. fi
  1898. rm -f conftest*
  1899. fi
  1900. rm -f conftest*
  1901.   ac_cv_prog_CPP="$CPP"
  1902. fi
  1903.   CPP="$ac_cv_prog_CPP"
  1904. else
  1905.   ac_cv_prog_CPP="$CPP"
  1906. fi
  1907. echo "$ac_t""$CPP" 1>&6
  1908.  
  1909. if test $ac_cv_prog_gcc = yes; then
  1910.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1911. echo "configure:1912: checking whether ${CC-cc} needs -traditional" >&5
  1912. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1913.   echo $ac_n "(cached) $ac_c" 1>&6
  1914. else
  1915.     ac_pattern="Autoconf.*'x'"
  1916.   cat > conftest.$ac_ext <<EOF
  1917. #line 1918 "configure"
  1918. #include "confdefs.h"
  1919. #include <sgtty.h>
  1920. Autoconf TIOCGETP
  1921. EOF
  1922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1923.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1924.   rm -rf conftest*
  1925.   ac_cv_prog_gcc_traditional=yes
  1926. else
  1927.   rm -rf conftest*
  1928.   ac_cv_prog_gcc_traditional=no
  1929. fi
  1930. rm -f conftest*
  1931.  
  1932.  
  1933.   if test $ac_cv_prog_gcc_traditional = no; then
  1934.     cat > conftest.$ac_ext <<EOF
  1935. #line 1936 "configure"
  1936. #include "confdefs.h"
  1937. #include <termio.h>
  1938. Autoconf TCGETA
  1939. EOF
  1940. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1941.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1942.   rm -rf conftest*
  1943.   ac_cv_prog_gcc_traditional=yes
  1944. fi
  1945. rm -f conftest*
  1946.  
  1947.   fi
  1948. fi
  1949.  
  1950. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1951.   if test $ac_cv_prog_gcc_traditional = yes; then
  1952.     CC="$CC -traditional"
  1953.   fi
  1954. fi
  1955.  
  1956.  
  1957.  
  1958.  
  1959. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1960. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1961.  
  1962.  
  1963. _bindir=`eval echo $bindir`
  1964. _bindir=`eval echo $_bindir`
  1965.  
  1966. _libdir=`eval echo $libdir`
  1967. _libdir=`eval echo $_libdir`
  1968. lib_search_path="-L$_libdir"
  1969.  
  1970. inc_search_path=`eval echo $includedir`
  1971. inc_search_path="-I`eval echo $inc_search_path`"
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977. # Check whether --with-libs-from or --without-libs-from was given.
  1978. if test "${with_libs_from+set}" = set; then
  1979.   withval="$with_libs_from"
  1980.   lib_search_path="$withval $lib_search_path"
  1981. fi
  1982.  
  1983.  
  1984. # Check whether --with-incs-from or --without-incs-from was given.
  1985. if test "${with_incs_from+set}" = set; then
  1986.   withval="$with_incs_from"
  1987.   inc_search_path="$withval $inc_search_path"
  1988. fi
  1989.  
  1990.  
  1991.  
  1992.  
  1993. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1994. echo "configure:1995: checking for vprintf" >&5
  1995. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1996.   echo $ac_n "(cached) $ac_c" 1>&6
  1997. else
  1998.   cat > conftest.$ac_ext <<EOF
  1999. #line 2000 "configure"
  2000. #include "confdefs.h"
  2001. /* System header to define __stub macros and hopefully few prototypes,
  2002.     which can conflict with char vprintf(); below.  */
  2003. #include <assert.h>
  2004. /* Override any gcc2 internal prototype to avoid an error.  */
  2005. /* We use char because int might match the return type of a gcc2
  2006.     builtin and then its argument prototype would still apply.  */
  2007. char vprintf();
  2008.  
  2009. int main() {
  2010.  
  2011. /* The GNU C library defines this for functions which it implements
  2012.     to always fail with ENOSYS.  Some functions are actually named
  2013.     something starting with __ and the normal name is an alias.  */
  2014. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2015. choke me
  2016. #else
  2017. vprintf();
  2018. #endif
  2019.  
  2020. ; return 0; }
  2021. EOF
  2022. if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2023.   rm -rf conftest*
  2024.   eval "ac_cv_func_vprintf=yes"
  2025. else
  2026.   echo "configure: failed program was:" >&5
  2027.   cat conftest.$ac_ext >&5
  2028.   rm -rf conftest*
  2029.   eval "ac_cv_func_vprintf=no"
  2030. fi
  2031. rm -f conftest*
  2032. fi
  2033.  
  2034. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2035.   echo "$ac_t""yes" 1>&6
  2036.   cat >> confdefs.h <<\EOF
  2037. #define HAVE_VPRINTF 1
  2038. EOF
  2039.  
  2040. else
  2041.   echo "$ac_t""no" 1>&6
  2042. fi
  2043.  
  2044. if test "$ac_cv_func_vprintf" != yes; then
  2045. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2046. echo "configure:2047: checking for _doprnt" >&5
  2047. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2048.   echo $ac_n "(cached) $ac_c" 1>&6
  2049. else
  2050.   cat > conftest.$ac_ext <<EOF
  2051. #line 2052 "configure"
  2052. #include "confdefs.h"
  2053. /* System header to define __stub macros and hopefully few prototypes,
  2054.     which can conflict with char _doprnt(); below.  */
  2055. #include <assert.h>
  2056. /* Override any gcc2 internal prototype to avoid an error.  */
  2057. /* We use char because int might match the return type of a gcc2
  2058.     builtin and then its argument prototype would still apply.  */
  2059. char _doprnt();
  2060.  
  2061. int main() {
  2062.  
  2063. /* The GNU C library defines this for functions which it implements
  2064.     to always fail with ENOSYS.  Some functions are actually named
  2065.     something starting with __ and the normal name is an alias.  */
  2066. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2067. choke me
  2068. #else
  2069. _doprnt();
  2070. #endif
  2071.  
  2072. ; return 0; }
  2073. EOF
  2074. if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2075.   rm -rf conftest*
  2076.   eval "ac_cv_func__doprnt=yes"
  2077. else
  2078.   echo "configure: failed program was:" >&5
  2079.   cat conftest.$ac_ext >&5
  2080.   rm -rf conftest*
  2081.   eval "ac_cv_func__doprnt=no"
  2082. fi
  2083. rm -f conftest*
  2084. fi
  2085.  
  2086. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2087.   echo "$ac_t""yes" 1>&6
  2088.   cat >> confdefs.h <<\EOF
  2089. #define HAVE_DOPRNT 1
  2090. EOF
  2091.  
  2092. else
  2093.   echo "$ac_t""no" 1>&6
  2094. fi
  2095.  
  2096. fi
  2097.  
  2098. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2099. # for constant arguments.  Useless!
  2100. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2101. echo "configure:2102: checking for working alloca.h" >&5
  2102. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2103.   echo $ac_n "(cached) $ac_c" 1>&6
  2104. else
  2105.   cat > conftest.$ac_ext <<EOF
  2106. #line 2107 "configure"
  2107. #include "confdefs.h"
  2108. #include <alloca.h>
  2109. int main() {
  2110. char *p = alloca(2 * sizeof(int));
  2111. ; return 0; }
  2112. EOF
  2113. if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2114.   rm -rf conftest*
  2115.   ac_cv_header_alloca_h=yes
  2116. else
  2117.   echo "configure: failed program was:" >&5
  2118.   cat conftest.$ac_ext >&5
  2119.   rm -rf conftest*
  2120.   ac_cv_header_alloca_h=no
  2121. fi
  2122. rm -f conftest*
  2123. fi
  2124.  
  2125. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2126. if test $ac_cv_header_alloca_h = yes; then
  2127.   cat >> confdefs.h <<\EOF
  2128. #define HAVE_ALLOCA_H 1
  2129. EOF
  2130.  
  2131. fi
  2132.  
  2133. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2134. echo "configure:2135: checking for alloca" >&5
  2135. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  2136.   echo $ac_n "(cached) $ac_c" 1>&6
  2137. else
  2138.   cat > conftest.$ac_ext <<EOF
  2139. #line 2140 "configure"
  2140. #include "confdefs.h"
  2141.  
  2142. #ifdef __GNUC__
  2143. # define alloca __builtin_alloca
  2144. #else
  2145. # ifdef _MSC_VER
  2146. #  include <malloc.h>
  2147. #  define alloca _alloca
  2148. # else
  2149. #  if HAVE_ALLOCA_H
  2150. #   include <alloca.h>
  2151. #  else
  2152. #   ifdef _AIX
  2153.  #pragma alloca
  2154. #   else
  2155. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  2156. char *alloca ();
  2157. #    endif
  2158. #   endif
  2159. #  endif
  2160. # endif
  2161. #endif
  2162.  
  2163. int main() {
  2164. char *p = (char *) alloca(1);
  2165. ; return 0; }
  2166. EOF
  2167. if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2168.   rm -rf conftest*
  2169.   ac_cv_func_alloca_works=yes
  2170. else
  2171.   echo "configure: failed program was:" >&5
  2172.   cat conftest.$ac_ext >&5
  2173.   rm -rf conftest*
  2174.   ac_cv_func_alloca_works=no
  2175. fi
  2176. rm -f conftest*
  2177. fi
  2178.  
  2179. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  2180. if test $ac_cv_func_alloca_works = yes; then
  2181.   cat >> confdefs.h <<\EOF
  2182. #define HAVE_ALLOCA 1
  2183. EOF
  2184.  
  2185. fi
  2186.  
  2187. if test $ac_cv_func_alloca_works = no; then
  2188.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2189.   # that cause trouble.  Some versions do not even contain alloca or
  2190.   # contain a buggy version.  If you still want to use their alloca,
  2191.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2192.   ALLOCA=alloca.${ac_objext}
  2193.   cat >> confdefs.h <<\EOF
  2194. #define C_ALLOCA 1
  2195. EOF
  2196.  
  2197.  
  2198. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2199. echo "configure:2200: checking whether alloca needs Cray hooks" >&5
  2200. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2201.   echo $ac_n "(cached) $ac_c" 1>&6
  2202. else
  2203.   cat > conftest.$ac_ext <<EOF
  2204. #line 2205 "configure"
  2205. #include "confdefs.h"
  2206. #if defined(CRAY) && ! defined(CRAY2)
  2207. webecray
  2208. #else
  2209. wenotbecray
  2210. #endif
  2211.  
  2212. EOF
  2213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2214.   egrep "webecray" >/dev/null 2>&1; then
  2215.   rm -rf conftest*
  2216.   ac_cv_os_cray=yes
  2217. else
  2218.   rm -rf conftest*
  2219.   ac_cv_os_cray=no
  2220. fi
  2221. rm -f conftest*
  2222.  
  2223. fi
  2224.  
  2225. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2226. if test $ac_cv_os_cray = yes; then
  2227. for ac_func in _getb67 GETB67 getb67; do
  2228.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2229. echo "configure:2230: checking for $ac_func" >&5
  2230. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2231.   echo $ac_n "(cached) $ac_c" 1>&6
  2232. else
  2233.   cat > conftest.$ac_ext <<EOF
  2234. #line 2235 "configure"
  2235. #include "confdefs.h"
  2236. /* System header to define __stub macros and hopefully few prototypes,
  2237.     which can conflict with char $ac_func(); below.  */
  2238. #include <assert.h>
  2239. /* Override any gcc2 internal prototype to avoid an error.  */
  2240. /* We use char because int might match the return type of a gcc2
  2241.     builtin and then its argument prototype would still apply.  */
  2242. char $ac_func();
  2243.  
  2244. int main() {
  2245.  
  2246. /* The GNU C library defines this for functions which it implements
  2247.     to always fail with ENOSYS.  Some functions are actually named
  2248.     something starting with __ and the normal name is an alias.  */
  2249. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2250. choke me
  2251. #else
  2252. $ac_func();
  2253. #endif
  2254.  
  2255. ; return 0; }
  2256. EOF
  2257. if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2258.   rm -rf conftest*
  2259.   eval "ac_cv_func_$ac_func=yes"
  2260. else
  2261.   echo "configure: failed program was:" >&5
  2262.   cat conftest.$ac_ext >&5
  2263.   rm -rf conftest*
  2264.   eval "ac_cv_func_$ac_func=no"
  2265. fi
  2266. rm -f conftest*
  2267. fi
  2268.  
  2269. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2270.   echo "$ac_t""yes" 1>&6
  2271.   cat >> confdefs.h <<EOF
  2272. #define CRAY_STACKSEG_END $ac_func
  2273. EOF
  2274.  
  2275.   break
  2276. else
  2277.   echo "$ac_t""no" 1>&6
  2278. fi
  2279.  
  2280. done
  2281. fi
  2282.  
  2283. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2284. echo "configure:2285: checking stack direction for C alloca" >&5
  2285. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2286.   echo $ac_n "(cached) $ac_c" 1>&6
  2287. else
  2288.   if test "$cross_compiling" = yes; then
  2289.   ac_cv_c_stack_direction=0
  2290. else
  2291.   cat > conftest.$ac_ext <<EOF
  2292. #line 2293 "configure"
  2293. #include "confdefs.h"
  2294. find_stack_direction ()
  2295. {
  2296.   static char *addr = 0;
  2297.   auto char dummy;
  2298.   if (addr == 0)
  2299.     {
  2300.       addr = &dummy;
  2301.       return find_stack_direction ();
  2302.     }
  2303.   else
  2304.     return (&dummy > addr) ? 1 : -1;
  2305. }
  2306. main ()
  2307. {
  2308.   exit (find_stack_direction() < 0);
  2309. }
  2310. EOF
  2311. if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2312. then
  2313.   ac_cv_c_stack_direction=1
  2314. else
  2315.   echo "configure: failed program was:" >&5
  2316.   cat conftest.$ac_ext >&5
  2317.   rm -fr conftest*
  2318.   ac_cv_c_stack_direction=-1
  2319. fi
  2320. rm -fr conftest*
  2321. fi
  2322.  
  2323. fi
  2324.  
  2325. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2326. cat >> confdefs.h <<EOF
  2327. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2328. EOF
  2329.  
  2330. fi
  2331.  
  2332. for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
  2333. do
  2334. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2335. echo "configure:2336: checking for $ac_func" >&5
  2336. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2337.   echo $ac_n "(cached) $ac_c" 1>&6
  2338. else
  2339.   cat > conftest.$ac_ext <<EOF
  2340. #line 2341 "configure"
  2341. #include "confdefs.h"
  2342. /* System header to define __stub macros and hopefully few prototypes,
  2343.     which can conflict with char $ac_func(); below.  */
  2344. #include <assert.h>
  2345. /* Override any gcc2 internal prototype to avoid an error.  */
  2346. /* We use char because int might match the return type of a gcc2
  2347.     builtin and then its argument prototype would still apply.  */
  2348. char $ac_func();
  2349.  
  2350. int main() {
  2351.  
  2352. /* The GNU C library defines this for functions which it implements
  2353.     to always fail with ENOSYS.  Some functions are actually named
  2354.     something starting with __ and the normal name is an alias.  */
  2355. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2356. choke me
  2357. #else
  2358. $ac_func();
  2359. #endif
  2360.  
  2361. ; return 0; }
  2362. EOF
  2363. if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2364.   rm -rf conftest*
  2365.   eval "ac_cv_func_$ac_func=yes"
  2366. else
  2367.   echo "configure: failed program was:" >&5
  2368.   cat conftest.$ac_ext >&5
  2369.   rm -rf conftest*
  2370.   eval "ac_cv_func_$ac_func=no"
  2371. fi
  2372. rm -f conftest*
  2373. fi
  2374.  
  2375. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2376.   echo "$ac_t""yes" 1>&6
  2377.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2378.   cat >> confdefs.h <<EOF
  2379. #define $ac_tr_func 1
  2380. EOF
  2381.  
  2382. else
  2383.   echo "$ac_t""no" 1>&6
  2384. fi
  2385. done
  2386.  
  2387.  
  2388.  
  2389.  
  2390. DLLIBS=""
  2391.  
  2392. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2393. echo "configure:2394: checking for dlopen" >&5
  2394. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2395.   echo $ac_n "(cached) $ac_c" 1>&6
  2396. else
  2397.   cat > conftest.$ac_ext <<EOF
  2398. #line 2399 "configure"
  2399. #include "confdefs.h"
  2400. /* System header to define __stub macros and hopefully few prototypes,
  2401.     which can conflict with char dlopen(); below.  */
  2402. #include <assert.h>
  2403. /* Override any gcc2 internal prototype to avoid an error.  */
  2404. /* We use char because int might match the return type of a gcc2
  2405.     builtin and then its argument prototype would still apply.  */
  2406. char dlopen();
  2407.  
  2408. int main() {
  2409.  
  2410. /* The GNU C library defines this for functions which it implements
  2411.     to always fail with ENOSYS.  Some functions are actually named
  2412.     something starting with __ and the normal name is an alias.  */
  2413. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  2414. choke me
  2415. #else
  2416. dlopen();
  2417. #endif
  2418.  
  2419. ; return 0; }
  2420. EOF
  2421. if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2422.   rm -rf conftest*
  2423.   eval "ac_cv_func_dlopen=yes"
  2424. else
  2425.   echo "configure: failed program was:" >&5
  2426.   cat conftest.$ac_ext >&5
  2427.   rm -rf conftest*
  2428.   eval "ac_cv_func_dlopen=no"
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432.  
  2433. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2434.   echo "$ac_t""yes" 1>&6
  2435.   HAVEDL="yes"
  2436. else
  2437.   echo "$ac_t""no" 1>&6
  2438. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2439. echo "configure:2440: checking for dlopen in -ldl" >&5
  2440. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2441. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2442.   echo $ac_n "(cached) $ac_c" 1>&6
  2443. else
  2444.   ac_save_LIBS="$LIBS"
  2445. LIBS="-ldl  $LIBS"
  2446. cat > conftest.$ac_ext <<EOF
  2447. #line 2448 "configure"
  2448. #include "confdefs.h"
  2449. /* Override any gcc2 internal prototype to avoid an error.  */
  2450. /* We use char because int might match the return type of a gcc2
  2451.     builtin and then its argument prototype would still apply.  */
  2452. char dlopen();
  2453.  
  2454. int main() {
  2455. dlopen()
  2456. ; return 0; }
  2457. EOF
  2458. if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2459.   rm -rf conftest*
  2460.   eval "ac_cv_lib_$ac_lib_var=yes"
  2461. else
  2462.   echo "configure: failed program was:" >&5
  2463.   cat conftest.$ac_ext >&5
  2464.   rm -rf conftest*
  2465.   eval "ac_cv_lib_$ac_lib_var=no"
  2466. fi
  2467. rm -f conftest*
  2468. LIBS="$ac_save_LIBS"
  2469.  
  2470. fi
  2471. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2472.   echo "$ac_t""yes" 1>&6
  2473.   DLLIBS="-ldl" HAVEDL="yes"
  2474. else
  2475.   echo "$ac_t""no" 1>&6
  2476. DLLIBS="" 
  2477. fi
  2478.  
  2479. fi
  2480.  
  2481.  
  2482. if test "x$HAVEDL" = xyes; then
  2483.     for ac_hdr in dlfcn.h
  2484. do
  2485. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2486. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2487. echo "configure:2488: checking for $ac_hdr" >&5
  2488. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2489.   echo $ac_n "(cached) $ac_c" 1>&6
  2490. else
  2491.   cat > conftest.$ac_ext <<EOF
  2492. #line 2493 "configure"
  2493. #include "confdefs.h"
  2494. #include <$ac_hdr>
  2495. EOF
  2496. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2497. { (eval echo configure:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2498. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2499. if test -z "$ac_err"; then
  2500.   rm -rf conftest*
  2501.   eval "ac_cv_header_$ac_safe=yes"
  2502. else
  2503.   echo "$ac_err" >&5
  2504.   echo "configure: failed program was:" >&5
  2505.   cat conftest.$ac_ext >&5
  2506.   rm -rf conftest*
  2507.   eval "ac_cv_header_$ac_safe=no"
  2508. fi
  2509. rm -f conftest*
  2510. fi
  2511. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2512.   echo "$ac_t""yes" 1>&6
  2513.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2514.   cat >> confdefs.h <<EOF
  2515. #define $ac_tr_hdr 1
  2516. EOF
  2517.  
  2518. else
  2519.   echo "$ac_t""no" 1>&6
  2520. fi
  2521. done
  2522.  
  2523. fi
  2524.  
  2525.  
  2526.  
  2527. if test "x$CPP_PATH" = x; then
  2528.     # Extract the first word of "cpp", so it can be a program name with args.
  2529. set dummy cpp; ac_word=$2
  2530. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2531. echo "configure:2532: checking for $ac_word" >&5
  2532. if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
  2533.   echo $ac_n "(cached) $ac_c" 1>&6
  2534. else
  2535.   case "$CPP_PATH" in
  2536.   /*)
  2537.   ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
  2538.   ;;
  2539.   ?:/*)             
  2540.   ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
  2541.   ;;
  2542.   *)
  2543.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2544.   ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
  2545.   for ac_dir in $ac_dummy; do 
  2546.     test -z "$ac_dir" && ac_dir=.
  2547.     if test -f $ac_dir/$ac_word; then
  2548.       ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
  2549.       break
  2550.     fi
  2551.   done
  2552.   IFS="$ac_save_ifs"
  2553.   test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
  2554.   ;;
  2555. esac
  2556. fi
  2557. CPP_PATH="$ac_cv_path_CPP_PATH"
  2558. if test -n "$CPP_PATH"; then
  2559.   echo "$ac_t""$CPP_PATH" 1>&6
  2560. else
  2561.   echo "$ac_t""no" 1>&6
  2562. fi
  2563.  
  2564. fi
  2565.  
  2566. if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
  2567.     if test "$GCC" = "yes"; then
  2568.     CPP_PATH="gcc -E -x c"
  2569.     else 
  2570.     if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
  2571.         CPP_PATH="$CPP_PATH -B"
  2572.     else
  2573.         echo "cpp, the C preprocessor was not found in your system."
  2574.           echo "Create a symbolic link from it to /lib/cpp and rerun configure"
  2575.           exit
  2576.     fi
  2577.     fi
  2578. fi
  2579. cat >> confdefs.h <<EOF
  2580. #define CPP_PATH "$CPP_PATH"
  2581. EOF
  2582.  
  2583.  
  2584.  
  2585.  
  2586. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2587. echo "configure:2588: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2588. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2589.   echo $ac_n "(cached) $ac_c" 1>&6
  2590. else
  2591.   cat > conftest.$ac_ext <<EOF
  2592. #line 2593 "configure"
  2593. #include "confdefs.h"
  2594. #include <sys/types.h>
  2595. #include <sys/wait.h>
  2596. #ifndef WEXITSTATUS
  2597. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2598. #endif
  2599. #ifndef WIFEXITED
  2600. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2601. #endif
  2602. int main() {
  2603. int s;
  2604. wait (&s);
  2605. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2606. ; return 0; }
  2607. EOF
  2608. if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2609.   rm -rf conftest*
  2610.   ac_cv_header_sys_wait_h=yes
  2611. else
  2612.   echo "configure: failed program was:" >&5
  2613.   cat conftest.$ac_ext >&5
  2614.   rm -rf conftest*
  2615.   ac_cv_header_sys_wait_h=no
  2616. fi
  2617. rm -f conftest*
  2618. fi
  2619.  
  2620. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2621. if test $ac_cv_header_sys_wait_h = yes; then
  2622.   cat >> confdefs.h <<\EOF
  2623. #define HAVE_SYS_WAIT_H 1
  2624. EOF
  2625.  
  2626. fi
  2627.  
  2628. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2629. echo "configure:2630: checking whether time.h and sys/time.h may both be included" >&5
  2630. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2631.   echo $ac_n "(cached) $ac_c" 1>&6
  2632. else
  2633.   cat > conftest.$ac_ext <<EOF
  2634. #line 2635 "configure"
  2635. #include "confdefs.h"
  2636. #include <sys/types.h>
  2637. #include <sys/time.h>
  2638. #include <time.h>
  2639. int main() {
  2640. struct tm *tp;
  2641. ; return 0; }
  2642. EOF
  2643. if { (eval echo configure:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2644.   rm -rf conftest*
  2645.   ac_cv_header_time=yes
  2646. else
  2647.   echo "configure: failed program was:" >&5
  2648.   cat conftest.$ac_ext >&5
  2649.   rm -rf conftest*
  2650.   ac_cv_header_time=no
  2651. fi
  2652. rm -f conftest*
  2653. fi
  2654.  
  2655. echo "$ac_t""$ac_cv_header_time" 1>&6
  2656. if test $ac_cv_header_time = yes; then
  2657.   cat >> confdefs.h <<\EOF
  2658. #define TIME_WITH_SYS_TIME 1
  2659. EOF
  2660.  
  2661. fi
  2662.  
  2663. for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
  2664.         libintl.h sys/select.h poll.h
  2665. do
  2666. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2667. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2668. echo "configure:2669: checking for $ac_hdr" >&5
  2669. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2670.   echo $ac_n "(cached) $ac_c" 1>&6
  2671. else
  2672.   cat > conftest.$ac_ext <<EOF
  2673. #line 2674 "configure"
  2674. #include "confdefs.h"
  2675. #include <$ac_hdr>
  2676. EOF
  2677. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2678. { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2679. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2680. if test -z "$ac_err"; then
  2681.   rm -rf conftest*
  2682.   eval "ac_cv_header_$ac_safe=yes"
  2683. else
  2684.   echo "$ac_err" >&5
  2685.   echo "configure: failed program was:" >&5
  2686.   cat conftest.$ac_ext >&5
  2687.   rm -rf conftest*
  2688.   eval "ac_cv_header_$ac_safe=no"
  2689. fi
  2690. rm -f conftest*
  2691. fi
  2692. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2693.   echo "$ac_t""yes" 1>&6
  2694.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2695.   cat >> confdefs.h <<EOF
  2696. #define $ac_tr_hdr 1
  2697. EOF
  2698.  
  2699. else
  2700.   echo "$ac_t""no" 1>&6
  2701. fi
  2702. done
  2703.  
  2704.  
  2705.  
  2706.  
  2707. echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
  2708. echo "configure:2709: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  2709. if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  2710.   echo $ac_n "(cached) $ac_c" 1>&6
  2711. else
  2712.   cat > conftest.$ac_ext <<EOF
  2713. #line 2714 "configure"
  2714. #include "confdefs.h"
  2715. #include <sys/types.h>
  2716. #include <signal.h>
  2717. /* NetBSD declares sys_siglist in unistd.h.  */
  2718. #ifdef HAVE_UNISTD_H
  2719. #include <unistd.h>
  2720. #endif
  2721. int main() {
  2722. char *msg = *(sys_siglist + 1);
  2723. ; return 0; }
  2724. EOF
  2725. if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2726.   rm -rf conftest*
  2727.   ac_cv_decl_sys_siglist=yes
  2728. else
  2729.   echo "configure: failed program was:" >&5
  2730.   cat conftest.$ac_ext >&5
  2731.   rm -rf conftest*
  2732.   ac_cv_decl_sys_siglist=no
  2733. fi
  2734. rm -f conftest*
  2735. fi
  2736.  
  2737. echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
  2738. if test $ac_cv_decl_sys_siglist = yes; then
  2739.   cat >> confdefs.h <<\EOF
  2740. #define SYS_SIGLIST_DECLARED 1
  2741. EOF
  2742.  
  2743. fi
  2744.  
  2745. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2746. echo "configure:2747: checking for working const" >&5
  2747. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2748.   echo $ac_n "(cached) $ac_c" 1>&6
  2749. else
  2750.   cat > conftest.$ac_ext <<EOF
  2751. #line 2752 "configure"
  2752. #include "confdefs.h"
  2753.  
  2754. int main() {
  2755.  
  2756. /* Ultrix mips cc rejects this.  */
  2757. typedef int charset[2]; const charset x;
  2758. /* SunOS 4.1.1 cc rejects this.  */
  2759. char const *const *ccp;
  2760. char **p;
  2761. /* NEC SVR4.0.2 mips cc rejects this.  */
  2762. struct point {int x, y;};
  2763. static struct point const zero = {0,0};
  2764. /* AIX XL C 1.02.0.0 rejects this.
  2765.    It does not let you subtract one const X* pointer from another in an arm
  2766.    of an if-expression whose if-part is not a constant expression */
  2767. const char *g = "string";
  2768. ccp = &g + (g ? g-g : 0);
  2769. /* HPUX 7.0 cc rejects these. */
  2770. ++ccp;
  2771. p = (char**) ccp;
  2772. ccp = (char const *const *) p;
  2773. { /* SCO 3.2v4 cc rejects this.  */
  2774.   char *t;
  2775.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2776.  
  2777.   *t++ = 0;
  2778. }
  2779. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2780.   int x[] = {25, 17};
  2781.   const int *foo = &x[0];
  2782.   ++foo;
  2783. }
  2784. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2785.   typedef const int *iptr;
  2786.   iptr p = 0;
  2787.   ++p;
  2788. }
  2789. { /* AIX XL C 1.02.0.0 rejects this saying
  2790.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2791.   struct s { int j; const int *ap[3]; };
  2792.   struct s *b; b->j = 5;
  2793. }
  2794. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2795.   const int foo = 10;
  2796. }
  2797.  
  2798. ; return 0; }
  2799. EOF
  2800. if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2801.   rm -rf conftest*
  2802.   ac_cv_c_const=yes
  2803. else
  2804.   echo "configure: failed program was:" >&5
  2805.   cat conftest.$ac_ext >&5
  2806.   rm -rf conftest*
  2807.   ac_cv_c_const=no
  2808. fi
  2809. rm -f conftest*
  2810. fi
  2811.  
  2812. echo "$ac_t""$ac_cv_c_const" 1>&6
  2813. if test $ac_cv_c_const = no; then
  2814.   cat >> confdefs.h <<\EOF
  2815. #define const 
  2816. EOF
  2817.  
  2818. fi
  2819.  
  2820. #AC_TYPE_SIZE_T
  2821. #AC_TYPE_PID_T
  2822. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2823. echo "configure:2824: checking return type of signal handlers" >&5
  2824. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2825.   echo $ac_n "(cached) $ac_c" 1>&6
  2826. else
  2827.   cat > conftest.$ac_ext <<EOF
  2828. #line 2829 "configure"
  2829. #include "confdefs.h"
  2830. #include <sys/types.h>
  2831. #include <signal.h>
  2832. #ifdef signal
  2833. #undef signal
  2834. #endif
  2835. #ifdef __cplusplus
  2836. extern "C" void (*signal (int, void (*)(int)))(int);
  2837. #else
  2838. void (*signal ()) ();
  2839. #endif
  2840.  
  2841. int main() {
  2842. int i;
  2843. ; return 0; }
  2844. EOF
  2845. if { (eval echo configure:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2846.   rm -rf conftest*
  2847.   ac_cv_type_signal=void
  2848. else
  2849.   echo "configure: failed program was:" >&5
  2850.   cat conftest.$ac_ext >&5
  2851.   rm -rf conftest*
  2852.   ac_cv_type_signal=int
  2853. fi
  2854. rm -f conftest*
  2855. fi
  2856.  
  2857. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2858. cat >> confdefs.h <<EOF
  2859. #define RETSIGTYPE $ac_cv_type_signal
  2860. EOF
  2861.  
  2862.  
  2863.  
  2864.     
  2865.  
  2866.     
  2867.  
  2868.  
  2869. if test "$ac_cv_prog_gcc" = yes; then
  2870.     x86=0
  2871.         case "$host_cpu" in
  2872.     i[3456]86) x86=1
  2873.     ;;
  2874.     esac
  2875.     
  2876.     if test $x86 = 1; then
  2877.         cat >> confdefs.h <<\EOF
  2878. #define ASM_X86 1
  2879. EOF
  2880.  
  2881.  
  2882.     echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
  2883. echo "configure:2884: checking whether gcc supports MMX(tm) inline asm" >&5
  2884. if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
  2885.   echo $ac_n "(cached) $ac_c" 1>&6
  2886. else
  2887.   cat > conftest.$ac_ext <<EOF
  2888. #line 2889 "configure"
  2889. #include "confdefs.h"
  2890.  
  2891. int main() {
  2892. asm ("movq %mm0, %mm1");
  2893. ; return 0; }
  2894. EOF
  2895. if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2896.   rm -rf conftest*
  2897.   ac_cv_c_inline_mmx=yes
  2898. else
  2899.   echo "configure: failed program was:" >&5
  2900.   cat conftest.$ac_ext >&5
  2901.   rm -rf conftest*
  2902.   ac_cv_c_inline_mmx=no
  2903. fi
  2904. rm -f conftest*
  2905. fi
  2906.  
  2907. echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
  2908.  
  2909.     if test "x$ac_cv_c_inline_mmx" = xyes; then
  2910.         cat >> confdefs.h <<\EOF
  2911. #define ASM_X86_MMX 1
  2912. EOF
  2913.  
  2914.     fi
  2915.     fi
  2916. fi
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925. INTLIBS=""
  2926.  
  2927. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  2928. echo "configure:2929: checking for gettext" >&5
  2929. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  2930.   echo $ac_n "(cached) $ac_c" 1>&6
  2931. else
  2932.   cat > conftest.$ac_ext <<EOF
  2933. #line 2934 "configure"
  2934. #include "confdefs.h"
  2935. /* System header to define __stub macros and hopefully few prototypes,
  2936.     which can conflict with char gettext(); below.  */
  2937. #include <assert.h>
  2938. /* Override any gcc2 internal prototype to avoid an error.  */
  2939. /* We use char because int might match the return type of a gcc2
  2940.     builtin and then its argument prototype would still apply.  */
  2941. char gettext();
  2942.  
  2943. int main() {
  2944.  
  2945. /* The GNU C library defines this for functions which it implements
  2946.     to always fail with ENOSYS.  Some functions are actually named
  2947.     something starting with __ and the normal name is an alias.  */
  2948. #if defined (__stub_gettext) || defined (__stub___gettext)
  2949. choke me
  2950. #else
  2951. gettext();
  2952. #endif
  2953.  
  2954. ; return 0; }
  2955. EOF
  2956. if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2957.   rm -rf conftest*
  2958.   eval "ac_cv_func_gettext=yes"
  2959. else
  2960.   echo "configure: failed program was:" >&5
  2961.   cat conftest.$ac_ext >&5
  2962.   rm -rf conftest*
  2963.   eval "ac_cv_func_gettext=no"
  2964. fi
  2965. rm -f conftest*
  2966. fi
  2967.  
  2968. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  2969.   echo "$ac_t""yes" 1>&6
  2970.   HAVEGETTEXT="yes"
  2971. else
  2972.   echo "$ac_t""no" 1>&6
  2973. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  2974. echo "configure:2975: checking for gettext in -lintl" >&5
  2975. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  2976. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2977.   echo $ac_n "(cached) $ac_c" 1>&6
  2978. else
  2979.   ac_save_LIBS="$LIBS"
  2980. LIBS="-lintl  $LIBS"
  2981. cat > conftest.$ac_ext <<EOF
  2982. #line 2983 "configure"
  2983. #include "confdefs.h"
  2984. /* Override any gcc2 internal prototype to avoid an error.  */
  2985. /* We use char because int might match the return type of a gcc2
  2986.     builtin and then its argument prototype would still apply.  */
  2987. char gettext();
  2988.  
  2989. int main() {
  2990. gettext()
  2991. ; return 0; }
  2992. EOF
  2993. if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2994.   rm -rf conftest*
  2995.   eval "ac_cv_lib_$ac_lib_var=yes"
  2996. else
  2997.   echo "configure: failed program was:" >&5
  2998.   cat conftest.$ac_ext >&5
  2999.   rm -rf conftest*
  3000.   eval "ac_cv_lib_$ac_lib_var=no"
  3001. fi
  3002. rm -f conftest*
  3003. LIBS="$ac_save_LIBS"
  3004.  
  3005. fi
  3006. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3007.   echo "$ac_t""yes" 1>&6
  3008.   INTLIBS="-lintl" HAVEGETTEXT="yes"
  3009. else
  3010.   echo "$ac_t""no" 1>&6
  3011. INTLIBS="" 
  3012. fi
  3013.  
  3014. fi
  3015.  
  3016.  
  3017. # Extract the first word of "xgettext", so it can be a program name with args.
  3018. set dummy xgettext; ac_word=$2
  3019. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3020. echo "configure:3021: checking for $ac_word" >&5
  3021. if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
  3022.   echo $ac_n "(cached) $ac_c" 1>&6
  3023. else
  3024.   if test -n "$XGETTEXT"; then
  3025.   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
  3026. else
  3027.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3028.   ac_dummy="$PATH"
  3029.   for ac_dir in $ac_dummy; do
  3030.     test -z "$ac_dir" && ac_dir=.
  3031.     if test -f $ac_dir/$ac_word; then
  3032.       ac_cv_prog_XGETTEXT="xgettext"
  3033.       break
  3034.     fi
  3035.   done
  3036.   IFS="$ac_save_ifs"
  3037. fi
  3038. fi
  3039. XGETTEXT="$ac_cv_prog_XGETTEXT"
  3040. if test -n "$XGETTEXT"; then
  3041.   echo "$ac_t""$XGETTEXT" 1>&6
  3042. else
  3043.   echo "$ac_t""no" 1>&6
  3044. fi
  3045.  
  3046.  
  3047. if test "$XGETTEXT" != ""; then 
  3048.     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
  3049.         echo "xgettext isn't GNU version"
  3050.         XGETTEXT=""
  3051.     fi
  3052. fi
  3053.  
  3054. if test "$LINGUAS" != ""; then
  3055.     if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
  3056.         cat >> confdefs.h <<\EOF
  3057. #define I18N 1
  3058. EOF
  3059.  
  3060.         PO=""
  3061. #       if test "$LINGUAS" = ""; then
  3062. #           ling=` (cd src/po; /bin/ls *.po) `
  3063. #            for l in $ling; do
  3064. #            lcode=`basename $l .po`
  3065. #            LINGUAS="$LINGUAS $lcode"
  3066. #           done
  3067. #       fi
  3068.         echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
  3069.     else
  3070.         LINGUAS=""
  3071.         PO=""
  3072.         echo "xgettext and libintl.a don't both exist; will not build i18n support"
  3073.     fi
  3074. else
  3075.         INTLIBS=""
  3076.     MOFILES=""
  3077.     WPMOFILES=""
  3078.     PO=""
  3079. fi
  3080.  
  3081.  
  3082.  
  3083. supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
  3084. supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
  3085.  
  3086. for lang in $LINGUAS; do
  3087.     ok=0
  3088.     for l in $supported_locales; do
  3089.         if test "$l" = "$lang"; then
  3090.             ok=1
  3091.             break
  3092.         fi
  3093.     done
  3094.     if test "$ok" = 1; then
  3095.         MOFILES="$MOFILES $lang.mo"
  3096.     else
  3097.         echo "Locale $lang is not supported."
  3098.     fi
  3099.     ok=0
  3100.     for l in $supported_wprefs_locales; do
  3101.         if test "$l" = "$lang"; then
  3102.             ok=1
  3103.             break
  3104.         fi
  3105.     done
  3106.     if test "$ok" = 1; then
  3107.         WPMOFILES="$WPMOFILES $lang.mo"
  3108.     fi
  3109. done
  3110.  
  3111.  
  3112.  
  3113. case $host_os in
  3114.     freebsd*)
  3115.         echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
  3116. echo "configure:3117: checking for setlocale in -lxpg4" >&5
  3117. ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
  3118. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3119.   echo $ac_n "(cached) $ac_c" 1>&6
  3120. else
  3121.   ac_save_LIBS="$LIBS"
  3122. LIBS="-lxpg4  $LIBS"
  3123. cat > conftest.$ac_ext <<EOF
  3124. #line 3125 "configure"
  3125. #include "confdefs.h"
  3126. /* Override any gcc2 internal prototype to avoid an error.  */
  3127. /* We use char because int might match the return type of a gcc2
  3128.     builtin and then its argument prototype would still apply.  */
  3129. char setlocale();
  3130.  
  3131. int main() {
  3132. setlocale()
  3133. ; return 0; }
  3134. EOF
  3135. if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3136.   rm -rf conftest*
  3137.   eval "ac_cv_lib_$ac_lib_var=yes"
  3138. else
  3139.   echo "configure: failed program was:" >&5
  3140.   cat conftest.$ac_ext >&5
  3141.   rm -rf conftest*
  3142.   eval "ac_cv_lib_$ac_lib_var=no"
  3143. fi
  3144. rm -f conftest*
  3145. LIBS="$ac_save_LIBS"
  3146.  
  3147. fi
  3148. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3149.   echo "$ac_t""yes" 1>&6
  3150.   LIBS="$LIBS -lxpg4"
  3151. else
  3152.   echo "$ac_t""no" 1>&6
  3153. fi
  3154. ;;
  3155.     *)
  3156.     ;;
  3157. esac
  3158.  
  3159.  
  3160.  
  3161. # Check whether --with-nlsdir or --without-nlsdir was given.
  3162. if test "${with_nlsdir+set}" = set; then
  3163.   withval="$with_nlsdir"
  3164.   :
  3165. fi
  3166.  
  3167.  
  3168.  
  3169. if test "x$NLSDIR" = "x"; then
  3170.     if test "x$with_nlsdir" != "x"; then
  3171.         NLSDIR=$with_nlsdir
  3172.     else
  3173.         NLSDIR='$(prefix)/lib/locale'
  3174.     fi
  3175. fi
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190. # Check whether --enable-gnome or --disable-gnome was given.
  3191. if test "${enable_gnome+set}" = set; then
  3192.   enableval="$enable_gnome"
  3193.   if test x$enableval = xyes; then
  3194.     cat >> confdefs.h <<\EOF
  3195. #define GNOME_STUFF 1
  3196. EOF
  3197.  
  3198.     gnome_on=yes
  3199.   fi
  3200. fi
  3201.  
  3202.  
  3203.  
  3204. # Check whether --enable-kde or --disable-kde was given.
  3205. if test "${enable_kde+set}" = set; then
  3206.   enableval="$enable_kde"
  3207.   if test x$enableval = xyes; then
  3208.     cat >> confdefs.h <<\EOF
  3209. #define KWM_HINTS 1
  3210. EOF
  3211.  
  3212.     kde_on=yes
  3213.   fi
  3214. fi
  3215.  
  3216.  
  3217.  
  3218. # Check whether --enable-openlook or --disable-openlook was given.
  3219. if test "${enable_openlook+set}" = set; then
  3220.   enableval="$enable_openlook"
  3221.   if test x$enableval = xyes; then
  3222.     cat >> confdefs.h <<\EOF
  3223. #define OLWM_HINTS 1
  3224. EOF
  3225.  
  3226.     openlook_on=yes
  3227.   fi
  3228. fi
  3229.  
  3230.  
  3231.  
  3232. # Check whether --enable-lite or --disable-lite was given.
  3233. if test "${enable_lite+set}" = set; then
  3234.   enableval="$enable_lite"
  3235.   if test x$enableval = xyes; then
  3236.         LITE=yes
  3237.     cat >> confdefs.h <<\EOF
  3238. #define LITE 1
  3239. EOF
  3240.  
  3241.         
  3242.   fi
  3243. fi
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249. NETLIBS=""
  3250.  
  3251. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3252. echo "configure:3253: checking for connect" >&5
  3253. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3254.   echo $ac_n "(cached) $ac_c" 1>&6
  3255. else
  3256.   cat > conftest.$ac_ext <<EOF
  3257. #line 3258 "configure"
  3258. #include "confdefs.h"
  3259. /* System header to define __stub macros and hopefully few prototypes,
  3260.     which can conflict with char connect(); below.  */
  3261. #include <assert.h>
  3262. /* Override any gcc2 internal prototype to avoid an error.  */
  3263. /* We use char because int might match the return type of a gcc2
  3264.     builtin and then its argument prototype would still apply.  */
  3265. char connect();
  3266.  
  3267. int main() {
  3268.  
  3269. /* The GNU C library defines this for functions which it implements
  3270.     to always fail with ENOSYS.  Some functions are actually named
  3271.     something starting with __ and the normal name is an alias.  */
  3272. #if defined (__stub_connect) || defined (__stub___connect)
  3273. choke me
  3274. #else
  3275. connect();
  3276. #endif
  3277.  
  3278. ; return 0; }
  3279. EOF
  3280. if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3281.   rm -rf conftest*
  3282.   eval "ac_cv_func_connect=yes"
  3283. else
  3284.   echo "configure: failed program was:" >&5
  3285.   cat conftest.$ac_ext >&5
  3286.   rm -rf conftest*
  3287.   eval "ac_cv_func_connect=no"
  3288. fi
  3289. rm -f conftest*
  3290. fi
  3291.  
  3292. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3293.   echo "$ac_t""yes" 1>&6
  3294.   :
  3295. else
  3296.   echo "$ac_t""no" 1>&6
  3297. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3298. echo "configure:3299: checking for connect in -lsocket" >&5
  3299. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3300. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3301.   echo $ac_n "(cached) $ac_c" 1>&6
  3302. else
  3303.   ac_save_LIBS="$LIBS"
  3304. LIBS="-lsocket  $LIBS"
  3305. cat > conftest.$ac_ext <<EOF
  3306. #line 3307 "configure"
  3307. #include "confdefs.h"
  3308. /* Override any gcc2 internal prototype to avoid an error.  */
  3309. /* We use char because int might match the return type of a gcc2
  3310.     builtin and then its argument prototype would still apply.  */
  3311. char connect();
  3312.  
  3313. int main() {
  3314. connect()
  3315. ; return 0; }
  3316. EOF
  3317. if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3318.   rm -rf conftest*
  3319.   eval "ac_cv_lib_$ac_lib_var=yes"
  3320. else
  3321.   echo "configure: failed program was:" >&5
  3322.   cat conftest.$ac_ext >&5
  3323.   rm -rf conftest*
  3324.   eval "ac_cv_lib_$ac_lib_var=no"
  3325. fi
  3326. rm -f conftest*
  3327. LIBS="$ac_save_LIBS"
  3328.  
  3329. fi
  3330. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3331.   echo "$ac_t""yes" 1>&6
  3332.   NETLIBS="$NETLIBS -lsocket"
  3333. else
  3334.   echo "$ac_t""no" 1>&6
  3335. fi
  3336.  
  3337. fi
  3338.  
  3339.  
  3340. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3341. echo "configure:3342: checking for gethostbyname" >&5
  3342. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3343.   echo $ac_n "(cached) $ac_c" 1>&6
  3344. else
  3345.   cat > conftest.$ac_ext <<EOF
  3346. #line 3347 "configure"
  3347. #include "confdefs.h"
  3348. /* System header to define __stub macros and hopefully few prototypes,
  3349.     which can conflict with char gethostbyname(); below.  */
  3350. #include <assert.h>
  3351. /* Override any gcc2 internal prototype to avoid an error.  */
  3352. /* We use char because int might match the return type of a gcc2
  3353.     builtin and then its argument prototype would still apply.  */
  3354. char gethostbyname();
  3355.  
  3356. int main() {
  3357.  
  3358. /* The GNU C library defines this for functions which it implements
  3359.     to always fail with ENOSYS.  Some functions are actually named
  3360.     something starting with __ and the normal name is an alias.  */
  3361. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3362. choke me
  3363. #else
  3364. gethostbyname();
  3365. #endif
  3366.  
  3367. ; return 0; }
  3368. EOF
  3369. if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3370.   rm -rf conftest*
  3371.   eval "ac_cv_func_gethostbyname=yes"
  3372. else
  3373.   echo "configure: failed program was:" >&5
  3374.   cat conftest.$ac_ext >&5
  3375.   rm -rf conftest*
  3376.   eval "ac_cv_func_gethostbyname=no"
  3377. fi
  3378. rm -f conftest*
  3379. fi
  3380.  
  3381. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3382.   echo "$ac_t""yes" 1>&6
  3383.   :
  3384. else
  3385.   echo "$ac_t""no" 1>&6
  3386. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3387. echo "configure:3388: checking for gethostbyname in -lnsl" >&5
  3388. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3389. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3390.   echo $ac_n "(cached) $ac_c" 1>&6
  3391. else
  3392.   ac_save_LIBS="$LIBS"
  3393. LIBS="-lnsl  $LIBS"
  3394. cat > conftest.$ac_ext <<EOF
  3395. #line 3396 "configure"
  3396. #include "confdefs.h"
  3397. /* Override any gcc2 internal prototype to avoid an error.  */
  3398. /* We use char because int might match the return type of a gcc2
  3399.     builtin and then its argument prototype would still apply.  */
  3400. char gethostbyname();
  3401.  
  3402. int main() {
  3403. gethostbyname()
  3404. ; return 0; }
  3405. EOF
  3406. if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3407.   rm -rf conftest*
  3408.   eval "ac_cv_lib_$ac_lib_var=yes"
  3409. else
  3410.   echo "configure: failed program was:" >&5
  3411.   cat conftest.$ac_ext >&5
  3412.   rm -rf conftest*
  3413.   eval "ac_cv_lib_$ac_lib_var=no"
  3414. fi
  3415. rm -f conftest*
  3416. LIBS="$ac_save_LIBS"
  3417.  
  3418. fi
  3419. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3420.   echo "$ac_t""yes" 1>&6
  3421.   NETLIBS="$NETLIBS -lnsl"
  3422. else
  3423.   echo "$ac_t""no" 1>&6
  3424. fi
  3425.  
  3426. fi
  3427.  
  3428.  
  3429. echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
  3430. echo "configure:3431: checking for inet_aton" >&5
  3431. if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  3432.   echo $ac_n "(cached) $ac_c" 1>&6
  3433. else
  3434.   cat > conftest.$ac_ext <<EOF
  3435. #line 3436 "configure"
  3436. #include "confdefs.h"
  3437. /* System header to define __stub macros and hopefully few prototypes,
  3438.     which can conflict with char inet_aton(); below.  */
  3439. #include <assert.h>
  3440. /* Override any gcc2 internal prototype to avoid an error.  */
  3441. /* We use char because int might match the return type of a gcc2
  3442.     builtin and then its argument prototype would still apply.  */
  3443. char inet_aton();
  3444.  
  3445. int main() {
  3446.  
  3447. /* The GNU C library defines this for functions which it implements
  3448.     to always fail with ENOSYS.  Some functions are actually named
  3449.     something starting with __ and the normal name is an alias.  */
  3450. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  3451. choke me
  3452. #else
  3453. inet_aton();
  3454. #endif
  3455.  
  3456. ; return 0; }
  3457. EOF
  3458. if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3459.   rm -rf conftest*
  3460.   eval "ac_cv_func_inet_aton=yes"
  3461. else
  3462.   echo "configure: failed program was:" >&5
  3463.   cat conftest.$ac_ext >&5
  3464.   rm -rf conftest*
  3465.   eval "ac_cv_func_inet_aton=no"
  3466. fi
  3467. rm -f conftest*
  3468. fi
  3469.  
  3470. if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  3471.   echo "$ac_t""yes" 1>&6
  3472.   cat >> confdefs.h <<\EOF
  3473. #define HAVE_INET_ATON 1
  3474. EOF
  3475.  
  3476. else
  3477.   echo "$ac_t""no" 1>&6
  3478. for lib in resolv socket inet bsd; do
  3479.     echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
  3480. echo "configure:3481: checking for inet_aton in -l$lib" >&5
  3481. ac_lib_var=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
  3482. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3483.   echo $ac_n "(cached) $ac_c" 1>&6
  3484. else
  3485.   ac_save_LIBS="$LIBS"
  3486. LIBS="-l$lib $NETLIBS $LIBS"
  3487. cat > conftest.$ac_ext <<EOF
  3488. #line 3489 "configure"
  3489. #include "confdefs.h"
  3490. /* Override any gcc2 internal prototype to avoid an error.  */
  3491. /* We use char because int might match the return type of a gcc2
  3492.     builtin and then its argument prototype would still apply.  */
  3493. char inet_aton();
  3494.  
  3495. int main() {
  3496. inet_aton()
  3497. ; return 0; }
  3498. EOF
  3499. if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3500.   rm -rf conftest*
  3501.   eval "ac_cv_lib_$ac_lib_var=yes"
  3502. else
  3503.   echo "configure: failed program was:" >&5
  3504.   cat conftest.$ac_ext >&5
  3505.   rm -rf conftest*
  3506.   eval "ac_cv_lib_$ac_lib_var=no"
  3507. fi
  3508. rm -f conftest*
  3509. LIBS="$ac_save_LIBS"
  3510.  
  3511. fi
  3512. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3513.   echo "$ac_t""yes" 1>&6
  3514.   cat >> confdefs.h <<\EOF
  3515. #define HAVE_INET_ATON 1
  3516. EOF
  3517.  
  3518.                  NETLIBS="$NETLIBS -l$lib"; break
  3519. else
  3520.   echo "$ac_t""no" 1>&6
  3521. fi
  3522.  
  3523.      done
  3524. fi
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531. # If we find X, set shell vars x_includes and x_libraries to the
  3532. # paths, otherwise set no_x=yes.
  3533. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3534. # --without-x overrides everything else, but does not touch the cache.
  3535. echo $ac_n "checking for X""... $ac_c" 1>&6
  3536. echo "configure:3537: checking for X" >&5
  3537.  
  3538. # Check whether --with-x or --without-x was given.
  3539. if test "${with_x+set}" = set; then
  3540.   withval="$with_x"
  3541.   :
  3542. fi
  3543.  
  3544. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3545. if test "x$with_x" = xno; then
  3546.   # The user explicitly disabled X.
  3547.   have_x=disabled
  3548. else
  3549.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3550.     # Both variables are already set.
  3551.     have_x=yes
  3552.   else
  3553. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  3554.   echo $ac_n "(cached) $ac_c" 1>&6
  3555. else
  3556.   # One or both of the vars are not set, and there is no cached value.
  3557. ac_x_includes=NO ac_x_libraries=NO
  3558. rm -fr conftestdir
  3559. if mkdir conftestdir; then
  3560.   cd conftestdir
  3561.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3562.   cat > Imakefile <<'EOF'
  3563. acfindx:
  3564.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3565. EOF
  3566.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3567.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3568.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3569.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3570.     for ac_extension in a so sl; do
  3571.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3572.         test -f $ac_im_libdir/libX11.$ac_extension; then
  3573.         ac_im_usrlibdir=$ac_im_libdir; break
  3574.       fi
  3575.     done
  3576.     # Screen out bogus values from the imake configuration.  They are
  3577.     # bogus both because they are the default anyway, and because
  3578.     # using them would break gcc on systems where it needs fixed includes.
  3579.     case "$ac_im_incroot" in
  3580.     /usr/include) ;;
  3581.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3582.     esac
  3583.     case "$ac_im_usrlibdir" in
  3584.     /usr/lib | /lib) ;;
  3585.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3586.     esac
  3587.   fi
  3588.   cd ..
  3589.   rm -fr conftestdir
  3590. fi
  3591.  
  3592. if test "$ac_x_includes" = NO; then
  3593.   # Guess where to find include files, by looking for this one X11 .h file.
  3594.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3595.  
  3596.   # First, try using that file with no special directory specified.
  3597. cat > conftest.$ac_ext <<EOF
  3598. #line 3599 "configure"
  3599. #include "confdefs.h"
  3600. #include <$x_direct_test_include>
  3601. EOF
  3602. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3603. { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3604. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3605. if test -z "$ac_err"; then
  3606.   rm -rf conftest*
  3607.   # We can compile using X headers with no special include directory.
  3608. ac_x_includes=
  3609. else
  3610.   echo "$ac_err" >&5
  3611.   echo "configure: failed program was:" >&5
  3612.   cat conftest.$ac_ext >&5
  3613.   rm -rf conftest*
  3614.   # Look for the header file in a standard set of common directories.
  3615. # Check X11 before X11Rn because it is often a symlink to the current release.
  3616.   for ac_dir in               \
  3617.     /usr/X11/include          \
  3618.     /usr/X11R6/include        \
  3619.     /usr/X11R5/include        \
  3620.     /usr/X11R4/include        \
  3621.                               \
  3622.     /usr/include/X11          \
  3623.     /usr/include/X11R6        \
  3624.     /usr/include/X11R5        \
  3625.     /usr/include/X11R4        \
  3626.                               \
  3627.     /usr/local/X11/include    \
  3628.     /usr/local/X11R6/include  \
  3629.     /usr/local/X11R5/include  \
  3630.     /usr/local/X11R4/include  \
  3631.                               \
  3632.     /usr/local/include/X11    \
  3633.     /usr/local/include/X11R6  \
  3634.     /usr/local/include/X11R5  \
  3635.     /usr/local/include/X11R4  \
  3636.                               \
  3637.     /usr/X386/include         \
  3638.     /usr/x386/include         \
  3639.     /usr/XFree86/include/X11  \
  3640.                               \
  3641.     /usr/include              \
  3642.     /usr/local/include        \
  3643.     /usr/unsupported/include  \
  3644.     /usr/athena/include       \
  3645.     /usr/local/x11r5/include  \
  3646.     /usr/lpp/Xamples/include  \
  3647.                               \
  3648.     /usr/openwin/include      \
  3649.     /usr/openwin/share/include \
  3650.     ; \
  3651.   do
  3652.     if test -r "$ac_dir/$x_direct_test_include"; then
  3653.       ac_x_includes=$ac_dir
  3654.       break
  3655.     fi
  3656.   done
  3657. fi
  3658. rm -f conftest*
  3659. fi # $ac_x_includes = NO
  3660.  
  3661. if test "$ac_x_libraries" = NO; then
  3662.   # Check for the libraries.
  3663.  
  3664.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3665.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3666.  
  3667.   # See if we find them without any special options.
  3668.   # Don't add to $LIBS permanently.
  3669.   ac_save_LIBS="$LIBS"
  3670.   LIBS="-l$x_direct_test_library $LIBS"
  3671. cat > conftest.$ac_ext <<EOF
  3672. #line 3673 "configure"
  3673. #include "confdefs.h"
  3674.  
  3675. int main() {
  3676. ${x_direct_test_function}()
  3677. ; return 0; }
  3678. EOF
  3679. if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3680.   rm -rf conftest*
  3681.   LIBS="$ac_save_LIBS"
  3682. # We can link X programs with no special library path.
  3683. ac_x_libraries=
  3684. else
  3685.   echo "configure: failed program was:" >&5
  3686.   cat conftest.$ac_ext >&5
  3687.   rm -rf conftest*
  3688.   LIBS="$ac_save_LIBS"
  3689. # First see if replacing the include by lib works.
  3690. # Check X11 before X11Rn because it is often a symlink to the current release.
  3691. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3692.     /usr/X11/lib          \
  3693.     /usr/X11R6/lib        \
  3694.     /usr/X11R5/lib        \
  3695.     /usr/X11R4/lib        \
  3696.                           \
  3697.     /usr/lib/X11          \
  3698.     /usr/lib/X11R6        \
  3699.     /usr/lib/X11R5        \
  3700.     /usr/lib/X11R4        \
  3701.                           \
  3702.     /usr/local/X11/lib    \
  3703.     /usr/local/X11R6/lib  \
  3704.     /usr/local/X11R5/lib  \
  3705.     /usr/local/X11R4/lib  \
  3706.                           \
  3707.     /usr/local/lib/X11    \
  3708.     /usr/local/lib/X11R6  \
  3709.     /usr/local/lib/X11R5  \
  3710.     /usr/local/lib/X11R4  \
  3711.                           \
  3712.     /usr/X386/lib         \
  3713.     /usr/x386/lib         \
  3714.     /usr/XFree86/lib/X11  \
  3715.                           \
  3716.     /usr/lib              \
  3717.     /usr/local/lib        \
  3718.     /usr/unsupported/lib  \
  3719.     /usr/athena/lib       \
  3720.     /usr/local/x11r5/lib  \
  3721.     /usr/lpp/Xamples/lib  \
  3722.     /lib/usr/lib/X11      \
  3723.                           \
  3724.     /usr/openwin/lib      \
  3725.     /usr/openwin/share/lib \
  3726.     ; \
  3727. do
  3728.   for ac_extension in a so sl; do
  3729.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3730.       ac_x_libraries=$ac_dir
  3731.       break 2
  3732.     fi
  3733.   done
  3734. done
  3735. fi
  3736. rm -f conftest*
  3737. fi # $ac_x_libraries = NO
  3738.  
  3739. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3740.   # Didn't find X anywhere.  Cache the known absence of X.
  3741.   ac_cv_have_x="have_x=no"
  3742. else
  3743.   # Record where we found X for the cache.
  3744.   ac_cv_have_x="have_x=yes \
  3745.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3746. fi
  3747. fi
  3748.   fi
  3749.   eval "$ac_cv_have_x"
  3750. fi # $with_x != no
  3751.  
  3752. if test "$have_x" != yes; then
  3753.   echo "$ac_t""$have_x" 1>&6
  3754.   no_x=yes
  3755. else
  3756.   # If each of the values was on the command line, it overrides each guess.
  3757.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3758.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3759.   # Update the cache value to reflect the command line values.
  3760.   ac_cv_have_x="have_x=yes \
  3761.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3762.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3763. fi
  3764.  
  3765. if test "$no_x" = yes; then
  3766.   # Not all programs may use this symbol, but it does not hurt to define it.
  3767.   cat >> confdefs.h <<\EOF
  3768. #define X_DISPLAY_MISSING 1
  3769. EOF
  3770.  
  3771.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3772. else
  3773.   if test -n "$x_includes"; then
  3774.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  3775.   fi
  3776.  
  3777.   # It would also be nice to do this for all -L options, not just this one.
  3778.   if test -n "$x_libraries"; then
  3779.     X_LIBS="$X_LIBS -L$x_libraries"
  3780.     # For Solaris; some versions of Sun CC require a space after -R and
  3781.     # others require no space.  Words are not sufficient . . . .
  3782.     case "`(uname -sr) 2>/dev/null`" in
  3783.     "SunOS 5"*)
  3784.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3785. echo "configure:3786: checking whether -R must be followed by a space" >&5
  3786.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3787.       cat > conftest.$ac_ext <<EOF
  3788. #line 3789 "configure"
  3789. #include "confdefs.h"
  3790.  
  3791. int main() {
  3792.  
  3793. ; return 0; }
  3794. EOF
  3795. if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3796.   rm -rf conftest*
  3797.   ac_R_nospace=yes
  3798. else
  3799.   echo "configure: failed program was:" >&5
  3800.   cat conftest.$ac_ext >&5
  3801.   rm -rf conftest*
  3802.   ac_R_nospace=no
  3803. fi
  3804. rm -f conftest*
  3805.       if test $ac_R_nospace = yes; then
  3806.     echo "$ac_t""no" 1>&6
  3807.     X_LIBS="$X_LIBS -R$x_libraries"
  3808.       else
  3809.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  3810.     cat > conftest.$ac_ext <<EOF
  3811. #line 3812 "configure"
  3812. #include "confdefs.h"
  3813.  
  3814. int main() {
  3815.  
  3816. ; return 0; }
  3817. EOF
  3818. if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3819.   rm -rf conftest*
  3820.   ac_R_space=yes
  3821. else
  3822.   echo "configure: failed program was:" >&5
  3823.   cat conftest.$ac_ext >&5
  3824.   rm -rf conftest*
  3825.   ac_R_space=no
  3826. fi
  3827. rm -f conftest*
  3828.     if test $ac_R_space = yes; then
  3829.       echo "$ac_t""yes" 1>&6
  3830.       X_LIBS="$X_LIBS -R $x_libraries"
  3831.     else
  3832.       echo "$ac_t""neither works" 1>&6
  3833.     fi
  3834.       fi
  3835.       LIBS="$ac_xsave_LIBS"
  3836.     esac
  3837.   fi
  3838.  
  3839.   # Check for system-dependent libraries X programs must link with.
  3840.   # Do this before checking for the system-independent R6 libraries
  3841.   # (-lICE), since we may need -lsocket or whatever for X linking.
  3842.  
  3843.   if test "$ISC" = yes; then
  3844.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3845.   else
  3846.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3847.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  3848.     # the Alpha needs dnet_stub (dnet does not exist).
  3849.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3850. echo "configure:3851: checking for dnet_ntoa in -ldnet" >&5
  3851. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3852. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3853.   echo $ac_n "(cached) $ac_c" 1>&6
  3854. else
  3855.   ac_save_LIBS="$LIBS"
  3856. LIBS="-ldnet  $LIBS"
  3857. cat > conftest.$ac_ext <<EOF
  3858. #line 3859 "configure"
  3859. #include "confdefs.h"
  3860. /* Override any gcc2 internal prototype to avoid an error.  */
  3861. /* We use char because int might match the return type of a gcc2
  3862.     builtin and then its argument prototype would still apply.  */
  3863. char dnet_ntoa();
  3864.  
  3865. int main() {
  3866. dnet_ntoa()
  3867. ; return 0; }
  3868. EOF
  3869. if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3870.   rm -rf conftest*
  3871.   eval "ac_cv_lib_$ac_lib_var=yes"
  3872. else
  3873.   echo "configure: failed program was:" >&5
  3874.   cat conftest.$ac_ext >&5
  3875.   rm -rf conftest*
  3876.   eval "ac_cv_lib_$ac_lib_var=no"
  3877. fi
  3878. rm -f conftest*
  3879. LIBS="$ac_save_LIBS"
  3880.  
  3881. fi
  3882. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3883.   echo "$ac_t""yes" 1>&6
  3884.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3885. else
  3886.   echo "$ac_t""no" 1>&6
  3887. fi
  3888.  
  3889.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3890.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3891. echo "configure:3892: checking for dnet_ntoa in -ldnet_stub" >&5
  3892. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3893. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3894.   echo $ac_n "(cached) $ac_c" 1>&6
  3895. else
  3896.   ac_save_LIBS="$LIBS"
  3897. LIBS="-ldnet_stub  $LIBS"
  3898. cat > conftest.$ac_ext <<EOF
  3899. #line 3900 "configure"
  3900. #include "confdefs.h"
  3901. /* Override any gcc2 internal prototype to avoid an error.  */
  3902. /* We use char because int might match the return type of a gcc2
  3903.     builtin and then its argument prototype would still apply.  */
  3904. char dnet_ntoa();
  3905.  
  3906. int main() {
  3907. dnet_ntoa()
  3908. ; return 0; }
  3909. EOF
  3910. if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3911.   rm -rf conftest*
  3912.   eval "ac_cv_lib_$ac_lib_var=yes"
  3913. else
  3914.   echo "configure: failed program was:" >&5
  3915.   cat conftest.$ac_ext >&5
  3916.   rm -rf conftest*
  3917.   eval "ac_cv_lib_$ac_lib_var=no"
  3918. fi
  3919. rm -f conftest*
  3920. LIBS="$ac_save_LIBS"
  3921.  
  3922. fi
  3923. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3924.   echo "$ac_t""yes" 1>&6
  3925.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3926. else
  3927.   echo "$ac_t""no" 1>&6
  3928. fi
  3929.  
  3930.     fi
  3931.  
  3932.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3933.     # to get the SysV transport functions.
  3934.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3935.     # needs -lnsl.
  3936.     # The nsl library prevents programs from opening the X display
  3937.     # on Irix 5.2, according to dickey@clark.net.
  3938.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3939. echo "configure:3940: checking for gethostbyname" >&5
  3940. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3941.   echo $ac_n "(cached) $ac_c" 1>&6
  3942. else
  3943.   cat > conftest.$ac_ext <<EOF
  3944. #line 3945 "configure"
  3945. #include "confdefs.h"
  3946. /* System header to define __stub macros and hopefully few prototypes,
  3947.     which can conflict with char gethostbyname(); below.  */
  3948. #include <assert.h>
  3949. /* Override any gcc2 internal prototype to avoid an error.  */
  3950. /* We use char because int might match the return type of a gcc2
  3951.     builtin and then its argument prototype would still apply.  */
  3952. char gethostbyname();
  3953.  
  3954. int main() {
  3955.  
  3956. /* The GNU C library defines this for functions which it implements
  3957.     to always fail with ENOSYS.  Some functions are actually named
  3958.     something starting with __ and the normal name is an alias.  */
  3959. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3960. choke me
  3961. #else
  3962. gethostbyname();
  3963. #endif
  3964.  
  3965. ; return 0; }
  3966. EOF
  3967. if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3968.   rm -rf conftest*
  3969.   eval "ac_cv_func_gethostbyname=yes"
  3970. else
  3971.   echo "configure: failed program was:" >&5
  3972.   cat conftest.$ac_ext >&5
  3973.   rm -rf conftest*
  3974.   eval "ac_cv_func_gethostbyname=no"
  3975. fi
  3976. rm -f conftest*
  3977. fi
  3978.  
  3979. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3980.   echo "$ac_t""yes" 1>&6
  3981.   :
  3982. else
  3983.   echo "$ac_t""no" 1>&6
  3984. fi
  3985.  
  3986.     if test $ac_cv_func_gethostbyname = no; then
  3987.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3988. echo "configure:3989: checking for gethostbyname in -lnsl" >&5
  3989. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3990. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3991.   echo $ac_n "(cached) $ac_c" 1>&6
  3992. else
  3993.   ac_save_LIBS="$LIBS"
  3994. LIBS="-lnsl  $LIBS"
  3995. cat > conftest.$ac_ext <<EOF
  3996. #line 3997 "configure"
  3997. #include "confdefs.h"
  3998. /* Override any gcc2 internal prototype to avoid an error.  */
  3999. /* We use char because int might match the return type of a gcc2
  4000.     builtin and then its argument prototype would still apply.  */
  4001. char gethostbyname();
  4002.  
  4003. int main() {
  4004. gethostbyname()
  4005. ; return 0; }
  4006. EOF
  4007. if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4008.   rm -rf conftest*
  4009.   eval "ac_cv_lib_$ac_lib_var=yes"
  4010. else
  4011.   echo "configure: failed program was:" >&5
  4012.   cat conftest.$ac_ext >&5
  4013.   rm -rf conftest*
  4014.   eval "ac_cv_lib_$ac_lib_var=no"
  4015. fi
  4016. rm -f conftest*
  4017. LIBS="$ac_save_LIBS"
  4018.  
  4019. fi
  4020. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4021.   echo "$ac_t""yes" 1>&6
  4022.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  4023. else
  4024.   echo "$ac_t""no" 1>&6
  4025. fi
  4026.  
  4027.     fi
  4028.  
  4029.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  4030.     # socket/setsockopt and other routines are undefined under SCO ODT
  4031.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  4032.     # on later versions), says simon@lia.di.epfl.ch: it contains
  4033.     # gethostby* variants that don't use the nameserver (or something).
  4034.     # -lsocket must be given before -lnsl if both are needed.
  4035.     # We assume that if connect needs -lnsl, so does gethostbyname.
  4036.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  4037. echo "configure:4038: checking for connect" >&5
  4038. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  4039.   echo $ac_n "(cached) $ac_c" 1>&6
  4040. else
  4041.   cat > conftest.$ac_ext <<EOF
  4042. #line 4043 "configure"
  4043. #include "confdefs.h"
  4044. /* System header to define __stub macros and hopefully few prototypes,
  4045.     which can conflict with char connect(); below.  */
  4046. #include <assert.h>
  4047. /* Override any gcc2 internal prototype to avoid an error.  */
  4048. /* We use char because int might match the return type of a gcc2
  4049.     builtin and then its argument prototype would still apply.  */
  4050. char connect();
  4051.  
  4052. int main() {
  4053.  
  4054. /* The GNU C library defines this for functions which it implements
  4055.     to always fail with ENOSYS.  Some functions are actually named
  4056.     something starting with __ and the normal name is an alias.  */
  4057. #if defined (__stub_connect) || defined (__stub___connect)
  4058. choke me
  4059. #else
  4060. connect();
  4061. #endif
  4062.  
  4063. ; return 0; }
  4064. EOF
  4065. if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4066.   rm -rf conftest*
  4067.   eval "ac_cv_func_connect=yes"
  4068. else
  4069.   echo "configure: failed program was:" >&5
  4070.   cat conftest.$ac_ext >&5
  4071.   rm -rf conftest*
  4072.   eval "ac_cv_func_connect=no"
  4073. fi
  4074. rm -f conftest*
  4075. fi
  4076.  
  4077. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  4078.   echo "$ac_t""yes" 1>&6
  4079.   :
  4080. else
  4081.   echo "$ac_t""no" 1>&6
  4082. fi
  4083.  
  4084.     if test $ac_cv_func_connect = no; then
  4085.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  4086. echo "configure:4087: checking for connect in -lsocket" >&5
  4087. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  4088. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4089.   echo $ac_n "(cached) $ac_c" 1>&6
  4090. else
  4091.   ac_save_LIBS="$LIBS"
  4092. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  4093. cat > conftest.$ac_ext <<EOF
  4094. #line 4095 "configure"
  4095. #include "confdefs.h"
  4096. /* Override any gcc2 internal prototype to avoid an error.  */
  4097. /* We use char because int might match the return type of a gcc2
  4098.     builtin and then its argument prototype would still apply.  */
  4099. char connect();
  4100.  
  4101. int main() {
  4102. connect()
  4103. ; return 0; }
  4104. EOF
  4105. if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4106.   rm -rf conftest*
  4107.   eval "ac_cv_lib_$ac_lib_var=yes"
  4108. else
  4109.   echo "configure: failed program was:" >&5
  4110.   cat conftest.$ac_ext >&5
  4111.   rm -rf conftest*
  4112.   eval "ac_cv_lib_$ac_lib_var=no"
  4113. fi
  4114. rm -f conftest*
  4115. LIBS="$ac_save_LIBS"
  4116.  
  4117. fi
  4118. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4119.   echo "$ac_t""yes" 1>&6
  4120.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  4121. else
  4122.   echo "$ac_t""no" 1>&6
  4123. fi
  4124.  
  4125.     fi
  4126.  
  4127.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  4128.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  4129. echo "configure:4130: checking for remove" >&5
  4130. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  4131.   echo $ac_n "(cached) $ac_c" 1>&6
  4132. else
  4133.   cat > conftest.$ac_ext <<EOF
  4134. #line 4135 "configure"
  4135. #include "confdefs.h"
  4136. /* System header to define __stub macros and hopefully few prototypes,
  4137.     which can conflict with char remove(); below.  */
  4138. #include <assert.h>
  4139. /* Override any gcc2 internal prototype to avoid an error.  */
  4140. /* We use char because int might match the return type of a gcc2
  4141.     builtin and then its argument prototype would still apply.  */
  4142. char remove();
  4143.  
  4144. int main() {
  4145.  
  4146. /* The GNU C library defines this for functions which it implements
  4147.     to always fail with ENOSYS.  Some functions are actually named
  4148.     something starting with __ and the normal name is an alias.  */
  4149. #if defined (__stub_remove) || defined (__stub___remove)
  4150. choke me
  4151. #else
  4152. remove();
  4153. #endif
  4154.  
  4155. ; return 0; }
  4156. EOF
  4157. if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4158.   rm -rf conftest*
  4159.   eval "ac_cv_func_remove=yes"
  4160. else
  4161.   echo "configure: failed program was:" >&5
  4162.   cat conftest.$ac_ext >&5
  4163.   rm -rf conftest*
  4164.   eval "ac_cv_func_remove=no"
  4165. fi
  4166. rm -f conftest*
  4167. fi
  4168.  
  4169. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  4170.   echo "$ac_t""yes" 1>&6
  4171.   :
  4172. else
  4173.   echo "$ac_t""no" 1>&6
  4174. fi
  4175.  
  4176.     if test $ac_cv_func_remove = no; then
  4177.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  4178. echo "configure:4179: checking for remove in -lposix" >&5
  4179. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  4180. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4181.   echo $ac_n "(cached) $ac_c" 1>&6
  4182. else
  4183.   ac_save_LIBS="$LIBS"
  4184. LIBS="-lposix  $LIBS"
  4185. cat > conftest.$ac_ext <<EOF
  4186. #line 4187 "configure"
  4187. #include "confdefs.h"
  4188. /* Override any gcc2 internal prototype to avoid an error.  */
  4189. /* We use char because int might match the return type of a gcc2
  4190.     builtin and then its argument prototype would still apply.  */
  4191. char remove();
  4192.  
  4193. int main() {
  4194. remove()
  4195. ; return 0; }
  4196. EOF
  4197. if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4198.   rm -rf conftest*
  4199.   eval "ac_cv_lib_$ac_lib_var=yes"
  4200. else
  4201.   echo "configure: failed program was:" >&5
  4202.   cat conftest.$ac_ext >&5
  4203.   rm -rf conftest*
  4204.   eval "ac_cv_lib_$ac_lib_var=no"
  4205. fi
  4206. rm -f conftest*
  4207. LIBS="$ac_save_LIBS"
  4208.  
  4209. fi
  4210. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4211.   echo "$ac_t""yes" 1>&6
  4212.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  4213. else
  4214.   echo "$ac_t""no" 1>&6
  4215. fi
  4216.  
  4217.     fi
  4218.  
  4219.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  4220.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  4221. echo "configure:4222: checking for shmat" >&5
  4222. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  4223.   echo $ac_n "(cached) $ac_c" 1>&6
  4224. else
  4225.   cat > conftest.$ac_ext <<EOF
  4226. #line 4227 "configure"
  4227. #include "confdefs.h"
  4228. /* System header to define __stub macros and hopefully few prototypes,
  4229.     which can conflict with char shmat(); below.  */
  4230. #include <assert.h>
  4231. /* Override any gcc2 internal prototype to avoid an error.  */
  4232. /* We use char because int might match the return type of a gcc2
  4233.     builtin and then its argument prototype would still apply.  */
  4234. char shmat();
  4235.  
  4236. int main() {
  4237.  
  4238. /* The GNU C library defines this for functions which it implements
  4239.     to always fail with ENOSYS.  Some functions are actually named
  4240.     something starting with __ and the normal name is an alias.  */
  4241. #if defined (__stub_shmat) || defined (__stub___shmat)
  4242. choke me
  4243. #else
  4244. shmat();
  4245. #endif
  4246.  
  4247. ; return 0; }
  4248. EOF
  4249. if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4250.   rm -rf conftest*
  4251.   eval "ac_cv_func_shmat=yes"
  4252. else
  4253.   echo "configure: failed program was:" >&5
  4254.   cat conftest.$ac_ext >&5
  4255.   rm -rf conftest*
  4256.   eval "ac_cv_func_shmat=no"
  4257. fi
  4258. rm -f conftest*
  4259. fi
  4260.  
  4261. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  4262.   echo "$ac_t""yes" 1>&6
  4263.   :
  4264. else
  4265.   echo "$ac_t""no" 1>&6
  4266. fi
  4267.  
  4268.     if test $ac_cv_func_shmat = no; then
  4269.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  4270. echo "configure:4271: checking for shmat in -lipc" >&5
  4271. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  4272. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4273.   echo $ac_n "(cached) $ac_c" 1>&6
  4274. else
  4275.   ac_save_LIBS="$LIBS"
  4276. LIBS="-lipc  $LIBS"
  4277. cat > conftest.$ac_ext <<EOF
  4278. #line 4279 "configure"
  4279. #include "confdefs.h"
  4280. /* Override any gcc2 internal prototype to avoid an error.  */
  4281. /* We use char because int might match the return type of a gcc2
  4282.     builtin and then its argument prototype would still apply.  */
  4283. char shmat();
  4284.  
  4285. int main() {
  4286. shmat()
  4287. ; return 0; }
  4288. EOF
  4289. if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4290.   rm -rf conftest*
  4291.   eval "ac_cv_lib_$ac_lib_var=yes"
  4292. else
  4293.   echo "configure: failed program was:" >&5
  4294.   cat conftest.$ac_ext >&5
  4295.   rm -rf conftest*
  4296.   eval "ac_cv_lib_$ac_lib_var=no"
  4297. fi
  4298. rm -f conftest*
  4299. LIBS="$ac_save_LIBS"
  4300.  
  4301. fi
  4302. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4303.   echo "$ac_t""yes" 1>&6
  4304.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  4305. else
  4306.   echo "$ac_t""no" 1>&6
  4307. fi
  4308.  
  4309.     fi
  4310.   fi
  4311.  
  4312.   # Check for libraries that X11R6 Xt/Xaw programs need.
  4313.   ac_save_LDFLAGS="$LDFLAGS"
  4314.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  4315.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4316.   # check for ICE first), but we must link in the order -lSM -lICE or
  4317.   # we get undefined symbols.  So assume we have SM if we have ICE.
  4318.   # These have to be linked with before -lX11, unlike the other
  4319.   # libraries we check for below, so use a different variable.
  4320.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  4321.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  4322. echo "configure:4323: checking for IceConnectionNumber in -lICE" >&5
  4323. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  4324. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4325.   echo $ac_n "(cached) $ac_c" 1>&6
  4326. else
  4327.   ac_save_LIBS="$LIBS"
  4328. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4329. cat > conftest.$ac_ext <<EOF
  4330. #line 4331 "configure"
  4331. #include "confdefs.h"
  4332. /* Override any gcc2 internal prototype to avoid an error.  */
  4333. /* We use char because int might match the return type of a gcc2
  4334.     builtin and then its argument prototype would still apply.  */
  4335. char IceConnectionNumber();
  4336.  
  4337. int main() {
  4338. IceConnectionNumber()
  4339. ; return 0; }
  4340. EOF
  4341. if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4342.   rm -rf conftest*
  4343.   eval "ac_cv_lib_$ac_lib_var=yes"
  4344. else
  4345.   echo "configure: failed program was:" >&5
  4346.   cat conftest.$ac_ext >&5
  4347.   rm -rf conftest*
  4348.   eval "ac_cv_lib_$ac_lib_var=no"
  4349. fi
  4350. rm -f conftest*
  4351. LIBS="$ac_save_LIBS"
  4352.  
  4353. fi
  4354. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4355.   echo "$ac_t""yes" 1>&6
  4356.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4357. else
  4358.   echo "$ac_t""no" 1>&6
  4359. fi
  4360.  
  4361.   LDFLAGS="$ac_save_LDFLAGS"
  4362.  
  4363. fi
  4364.  
  4365.  
  4366. if test $no_x; then
  4367.     { echo "configure: error: The path for the X11 files not found!
  4368. Make sure you have X and it's headers and libraries (the -devel packages
  4369. in Linux) installed." 1>&2; exit 1; }
  4370. fi
  4371.  
  4372. X_LIBRARY_PATH=$x_libraries
  4373.  
  4374. XCFLAGS="$X_CFLAGS"
  4375.  
  4376. XLFLAGS="$X_LIBS"
  4377.  
  4378. XLIBS="-lX11 $X_EXTRA_LIBS"
  4379.  
  4380.  
  4381. lib_search_path="$lib_search_path $XLFLAGS"
  4382. inc_search_path="$inc_search_path $XCFLAGS"
  4383.  
  4384.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389. use_locale=yes
  4390. # Check whether --enable-locale or --disable-locale was given.
  4391. if test "${enable_locale+set}" = set; then
  4392.   enableval="$enable_locale"
  4393.   use_locale=no
  4394. fi
  4395.  
  4396.  
  4397. if test "$use_locale" = yes; then
  4398.   echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
  4399. echo "configure:4400: checking for _Xsetlocale in -lX11" >&5
  4400. ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
  4401. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4402.   echo $ac_n "(cached) $ac_c" 1>&6
  4403. else
  4404.   ac_save_LIBS="$LIBS"
  4405. LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
  4406. cat > conftest.$ac_ext <<EOF
  4407. #line 4408 "configure"
  4408. #include "confdefs.h"
  4409. /* Override any gcc2 internal prototype to avoid an error.  */
  4410. /* We use char because int might match the return type of a gcc2
  4411.     builtin and then its argument prototype would still apply.  */
  4412. char _Xsetlocale();
  4413.  
  4414. int main() {
  4415. _Xsetlocale()
  4416. ; return 0; }
  4417. EOF
  4418. if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4419.   rm -rf conftest*
  4420.   eval "ac_cv_lib_$ac_lib_var=yes"
  4421. else
  4422.   echo "configure: failed program was:" >&5
  4423.   cat conftest.$ac_ext >&5
  4424.   rm -rf conftest*
  4425.   eval "ac_cv_lib_$ac_lib_var=no"
  4426. fi
  4427. rm -f conftest*
  4428. LIBS="$ac_save_LIBS"
  4429.  
  4430. fi
  4431. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4432.   echo "$ac_t""yes" 1>&6
  4433.   cat >> confdefs.h <<\EOF
  4434. #define X_LOCALE 1
  4435. EOF
  4436.  
  4437. else
  4438.   echo "$ac_t""no" 1>&6
  4439. fi
  4440.  
  4441. fi
  4442.  
  4443.  
  4444. echo $ac_n "checking for XInternAtoms in -lX11""... $ac_c" 1>&6
  4445. echo "configure:4446: checking for XInternAtoms in -lX11" >&5
  4446. ac_lib_var=`echo X11'_'XInternAtoms | sed 'y%./+-%__p_%'`
  4447. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4448.   echo $ac_n "(cached) $ac_c" 1>&6
  4449. else
  4450.   ac_save_LIBS="$LIBS"
  4451. LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
  4452. cat > conftest.$ac_ext <<EOF
  4453. #line 4454 "configure"
  4454. #include "confdefs.h"
  4455. /* Override any gcc2 internal prototype to avoid an error.  */
  4456. /* We use char because int might match the return type of a gcc2
  4457.     builtin and then its argument prototype would still apply.  */
  4458. char XInternAtoms();
  4459.  
  4460. int main() {
  4461. XInternAtoms()
  4462. ; return 0; }
  4463. EOF
  4464. if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4465.   rm -rf conftest*
  4466.   eval "ac_cv_lib_$ac_lib_var=yes"
  4467. else
  4468.   echo "configure: failed program was:" >&5
  4469.   cat conftest.$ac_ext >&5
  4470.   rm -rf conftest*
  4471.   eval "ac_cv_lib_$ac_lib_var=no"
  4472. fi
  4473. rm -f conftest*
  4474. LIBS="$ac_save_LIBS"
  4475.  
  4476. fi
  4477. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4478.   echo "$ac_t""yes" 1>&6
  4479.   cat >> confdefs.h <<\EOF
  4480. #define HAVE_XINTERNATOMS 1
  4481. EOF
  4482.  
  4483. else
  4484.   echo "$ac_t""no" 1>&6
  4485. fi
  4486.  
  4487.  
  4488.  
  4489. # Check whether --enable-modelock or --disable-modelock was given.
  4490. if test "${enable_modelock+set}" = set; then
  4491.   enableval="$enable_modelock"
  4492.   cat >> confdefs.h <<\EOF
  4493. #define XKB_MODELOCK 1
  4494. EOF
  4495.  
  4496. fi
  4497.  
  4498.  
  4499.  
  4500.  
  4501. shape=yes
  4502. # Check whether --enable-shape or --disable-shape was given.
  4503. if test "${enable_shape+set}" = set; then
  4504.   enableval="$enable_shape"
  4505.   shape=$enableval
  4506. else
  4507.   shape=yes
  4508. fi
  4509.  
  4510.  
  4511. added_xext=no
  4512.  
  4513. if test "$shape" = yes; then
  4514.     echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
  4515. echo "configure:4516: checking for XShapeSelectInput in -lXext" >&5
  4516. ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
  4517. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4518.   echo $ac_n "(cached) $ac_c" 1>&6
  4519. else
  4520.   ac_save_LIBS="$LIBS"
  4521. LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
  4522. cat > conftest.$ac_ext <<EOF
  4523. #line 4524 "configure"
  4524. #include "confdefs.h"
  4525. /* Override any gcc2 internal prototype to avoid an error.  */
  4526. /* We use char because int might match the return type of a gcc2
  4527.     builtin and then its argument prototype would still apply.  */
  4528. char XShapeSelectInput();
  4529.  
  4530. int main() {
  4531. XShapeSelectInput()
  4532. ; return 0; }
  4533. EOF
  4534. if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4535.   rm -rf conftest*
  4536.   eval "ac_cv_lib_$ac_lib_var=yes"
  4537. else
  4538.   echo "configure: failed program was:" >&5
  4539.   cat conftest.$ac_ext >&5
  4540.   rm -rf conftest*
  4541.   eval "ac_cv_lib_$ac_lib_var=no"
  4542. fi
  4543. rm -f conftest*
  4544. LIBS="$ac_save_LIBS"
  4545.  
  4546. fi
  4547. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4548.   echo "$ac_t""yes" 1>&6
  4549.   XLIBS="-lXext $XLIBS"
  4550.         added_xext=yes
  4551.                 cat >> confdefs.h <<\EOF
  4552. #define SHAPE 1
  4553. EOF
  4554.  
  4555. else
  4556.   echo "$ac_t""no" 1>&6
  4557. shape=no
  4558. fi
  4559.  
  4560. fi
  4561.  
  4562.  
  4563. xinerama=yes
  4564. # Check whether --enable-xinerama or --disable-xinerama was given.
  4565. if test "${enable_xinerama+set}" = set; then
  4566.   enableval="$enable_xinerama"
  4567.   xinerama=$enableval
  4568. else
  4569.   xinerama=yes
  4570. fi
  4571.  
  4572.  
  4573. if test "$xinerama" = yes; then
  4574.     echo $ac_n "checking for X in -lXext""... $ac_c" 1>&6
  4575. echo "configure:4576: checking for X in -lXext" >&5
  4576. ac_lib_var=`echo Xext'_'X | sed 'y%./+-%__p_%'`
  4577. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4578.   echo $ac_n "(cached) $ac_c" 1>&6
  4579. else
  4580.   ac_save_LIBS="$LIBS"
  4581. LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
  4582. cat > conftest.$ac_ext <<EOF
  4583. #line 4584 "configure"
  4584. #include "confdefs.h"
  4585. /* Override any gcc2 internal prototype to avoid an error.  */
  4586. /* We use char because int might match the return type of a gcc2
  4587.     builtin and then its argument prototype would still apply.  */
  4588. char X();
  4589.  
  4590. int main() {
  4591. X()
  4592. ; return 0; }
  4593. EOF
  4594. if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4595.   rm -rf conftest*
  4596.   eval "ac_cv_lib_$ac_lib_var=yes"
  4597. else
  4598.   echo "configure: failed program was:" >&5
  4599.   cat conftest.$ac_ext >&5
  4600.   rm -rf conftest*
  4601.   eval "ac_cv_lib_$ac_lib_var=no"
  4602. fi
  4603. rm -f conftest*
  4604. LIBS="$ac_save_LIBS"
  4605.  
  4606. fi
  4607. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4608.   echo "$ac_t""yes" 1>&6
  4609.   XLIBS="-lXext $XLIBS"
  4610.         added_xext=yes
  4611.                 cat >> confdefs.h <<\EOF
  4612. #define XINERAMA 1
  4613. EOF
  4614.  
  4615. else
  4616.   echo "$ac_t""no" 1>&6
  4617. xinerama=no
  4618. fi
  4619.  
  4620. fi
  4621.  
  4622.  
  4623.  
  4624. shm=yes
  4625. # Check whether --enable-shm or --disable-shm was given.
  4626. if test "${enable_shm+set}" = set; then
  4627.   enableval="$enable_shm"
  4628.   shm=$enableval
  4629. else
  4630.   shm=yes
  4631. fi
  4632.  
  4633.  
  4634. if test "$shm" = yes; then
  4635.     echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
  4636. echo "configure:4637: checking for XShmAttach in -lXext" >&5
  4637. ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
  4638. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4639.   echo $ac_n "(cached) $ac_c" 1>&6
  4640. else
  4641.   ac_save_LIBS="$LIBS"
  4642. LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
  4643. cat > conftest.$ac_ext <<EOF
  4644. #line 4645 "configure"
  4645. #include "confdefs.h"
  4646. /* Override any gcc2 internal prototype to avoid an error.  */
  4647. /* We use char because int might match the return type of a gcc2
  4648.     builtin and then its argument prototype would still apply.  */
  4649. char XShmAttach();
  4650.  
  4651. int main() {
  4652. XShmAttach()
  4653. ; return 0; }
  4654. EOF
  4655. if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4656.   rm -rf conftest*
  4657.   eval "ac_cv_lib_$ac_lib_var=yes"
  4658. else
  4659.   echo "configure: failed program was:" >&5
  4660.   cat conftest.$ac_ext >&5
  4661.   rm -rf conftest*
  4662.   eval "ac_cv_lib_$ac_lib_var=no"
  4663. fi
  4664. rm -f conftest*
  4665. LIBS="$ac_save_LIBS"
  4666.  
  4667. fi
  4668. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4669.   echo "$ac_t""yes" 1>&6
  4670.   ok=yes
  4671. else
  4672.   echo "$ac_t""no" 1>&6
  4673. ok=no
  4674. fi
  4675.  
  4676.  
  4677.     if test "$ok" = yes; then
  4678.     echo $ac_n "checking for shmget""... $ac_c" 1>&6
  4679. echo "configure:4680: checking for shmget" >&5
  4680. if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
  4681.   echo $ac_n "(cached) $ac_c" 1>&6
  4682. else
  4683.   cat > conftest.$ac_ext <<EOF
  4684. #line 4685 "configure"
  4685. #include "confdefs.h"
  4686. /* System header to define __stub macros and hopefully few prototypes,
  4687.     which can conflict with char shmget(); below.  */
  4688. #include <assert.h>
  4689. /* Override any gcc2 internal prototype to avoid an error.  */
  4690. /* We use char because int might match the return type of a gcc2
  4691.     builtin and then its argument prototype would still apply.  */
  4692. char shmget();
  4693.  
  4694. int main() {
  4695.  
  4696. /* The GNU C library defines this for functions which it implements
  4697.     to always fail with ENOSYS.  Some functions are actually named
  4698.     something starting with __ and the normal name is an alias.  */
  4699. #if defined (__stub_shmget) || defined (__stub___shmget)
  4700. choke me
  4701. #else
  4702. shmget();
  4703. #endif
  4704.  
  4705. ; return 0; }
  4706. EOF
  4707. if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4708.   rm -rf conftest*
  4709.   eval "ac_cv_func_shmget=yes"
  4710. else
  4711.   echo "configure: failed program was:" >&5
  4712.   cat conftest.$ac_ext >&5
  4713.   rm -rf conftest*
  4714.   eval "ac_cv_func_shmget=no"
  4715. fi
  4716. rm -f conftest*
  4717. fi
  4718.  
  4719. if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
  4720.   echo "$ac_t""yes" 1>&6
  4721.   ok=yes
  4722. else
  4723.   echo "$ac_t""no" 1>&6
  4724. ok=no
  4725. fi
  4726.  
  4727.     fi
  4728.  
  4729.     if test "$ok" = yes; then
  4730.         if test "$added_xext" = no; then
  4731.             XLIBS="-lXext $XLIBS"
  4732.         fi
  4733.                 cat >> confdefs.h <<\EOF
  4734. #define XSHM 1
  4735. EOF
  4736.  
  4737.     fi
  4738. fi
  4739.  
  4740.  
  4741.  
  4742. #
  4743. #
  4744. #AC_DEFINE(R6SM)
  4745. #AC_SUBST(XSMPLIBS)
  4746. #
  4747.  
  4748.  
  4749.  
  4750. LIBPL=""
  4751.  
  4752.  
  4753. LDFLAGS_old="$LDFLAGS"
  4754. LDFLAGS="$LDFLAGS $lib_search_path"
  4755. echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
  4756. echo "configure:4757: checking for PLGetString in -lPropList" >&5
  4757. ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
  4758. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4759.   echo $ac_n "(cached) $ac_c" 1>&6
  4760. else
  4761.   ac_save_LIBS="$LIBS"
  4762. LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
  4763. cat > conftest.$ac_ext <<EOF
  4764. #line 4765 "configure"
  4765. #include "confdefs.h"
  4766. /* Override any gcc2 internal prototype to avoid an error.  */
  4767. /* We use char because int might match the return type of a gcc2
  4768.     builtin and then its argument prototype would still apply.  */
  4769. char PLGetString();
  4770.  
  4771. int main() {
  4772. PLGetString()
  4773. ; return 0; }
  4774. EOF
  4775. if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4776.   rm -rf conftest*
  4777.   eval "ac_cv_lib_$ac_lib_var=yes"
  4778. else
  4779.   echo "configure: failed program was:" >&5
  4780.   cat conftest.$ac_ext >&5
  4781.   rm -rf conftest*
  4782.   eval "ac_cv_lib_$ac_lib_var=no"
  4783. fi
  4784. rm -f conftest*
  4785. LIBS="$ac_save_LIBS"
  4786.  
  4787. fi
  4788. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4789.   echo "$ac_t""yes" 1>&6
  4790.   yes=yes
  4791. else
  4792.   echo "$ac_t""no" 1>&6
  4793. no=no
  4794. fi
  4795.  
  4796. LDFLAGS="$LDFLAGS_old"
  4797.  
  4798. if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
  4799.     
  4800. CPPFLAGS_old="$CPPFLAGS"
  4801. CPPFLAGS="$CPPFLAGS $inc_search_path"
  4802. ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
  4803. echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
  4804. echo "configure:4805: checking for proplist.h" >&5
  4805. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4806.   echo $ac_n "(cached) $ac_c" 1>&6
  4807. else
  4808.   cat > conftest.$ac_ext <<EOF
  4809. #line 4810 "configure"
  4810. #include "confdefs.h"
  4811. #include <proplist.h>
  4812. EOF
  4813. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4814. { (eval echo configure:4815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4815. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4816. if test -z "$ac_err"; then
  4817.   rm -rf conftest*
  4818.   eval "ac_cv_header_$ac_safe=yes"
  4819. else
  4820.   echo "$ac_err" >&5
  4821.   echo "configure: failed program was:" >&5
  4822.   cat conftest.$ac_ext >&5
  4823.   rm -rf conftest*
  4824.   eval "ac_cv_header_$ac_safe=no"
  4825. fi
  4826. rm -f conftest*
  4827. fi
  4828. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4829.   echo "$ac_t""yes" 1>&6
  4830.   :
  4831. else
  4832.   echo "$ac_t""no" 1>&6
  4833. fi
  4834.  
  4835. CPPFLAGS="$CPPFLAGS_old"
  4836.  
  4837.     if test "x$ac_cv_header_proplist_h" = xyes; then
  4838.         LIBPL="-lPropList"
  4839.     fi
  4840. fi
  4841.  
  4842. if test "x$LIBPL" = "x"; then
  4843.    echo
  4844.    echo "ERROR!!! libPropList is not installed, or could not be found."
  4845.    echo "         Window Maker requires libPropList to build."
  4846.    echo "         Please read INSTALL to find where you can find libPropList,"
  4847.    echo "         and install it first."
  4848.    if test x$host_os = xlinux; then
  4849.    echo "         If you're using some prepackaged version of libPropList,"
  4850.    echo "         make sure you install it's \"development\" package as well."
  4851.    fi
  4852.    echo "         If you already have it installed, try using the"
  4853.    if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
  4854.    echo "         --with-libs-from flag to tell configure where the library"
  4855.    echo "      is installed and"
  4856.    fi
  4857.    echo "         --with-incs-from flag to tell configure where the header"
  4858.    echo "      files are installed"
  4859.    exit 1
  4860. fi
  4861.  
  4862. lPLVersion="0.10.1"
  4863.  
  4864.  
  4865. CPPFLAGS_old="$CPPFLAGS"
  4866. CPPFLAGS="$CPPFLAGS $inc_search_path"
  4867. lPL_major_version=`echo $lPLVersion | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4868. lPL_minor_version=`echo $lPLVersion | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4869. lPL_micro_version=`echo $lPLVersion | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4870. echo $ac_n "checking whether libPropList is newer than $lPLVersion""... $ac_c" 1>&6
  4871. echo "configure:4872: checking whether libPropList is newer than $lPLVersion" >&5
  4872. if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
  4873.   echo $ac_n "(cached) $ac_c" 1>&6
  4874. else
  4875.   cat > conftest.$ac_ext <<EOF
  4876. #line 4877 "configure"
  4877. #include "confdefs.h"
  4878. /* Test version of libPropList we have */
  4879. #include <proplist.h>
  4880.  
  4881. #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
  4882. #error libPropList on this system is too old. Consider upgrading to at least $lPLVersion
  4883. #endif
  4884.  
  4885. int main() {
  4886.  
  4887. ; return 0; }
  4888. EOF
  4889. if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4890.   rm -rf conftest*
  4891.   eval "ac_cv_lib_proplist_version_ok=yes"
  4892. else
  4893.   echo "configure: failed program was:" >&5
  4894.   cat conftest.$ac_ext >&5
  4895.   rm -rf conftest*
  4896.   eval "ac_cv_lib_proplist_version_ok=no"
  4897. fi
  4898. rm -f conftest*
  4899. fi
  4900.  
  4901. if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
  4902.   echo "$ac_t""yes" 1>&6
  4903.   goodlPL=yes
  4904. else
  4905.   echo "$ac_t""no" 1>&6
  4906. goodlPL=no
  4907. fi
  4908. CPPFLAGS="$CPPFLAGS_old"
  4909.  
  4910.  
  4911. if test "$goodlPL" = no; then
  4912.    echo
  4913.    echo "ERROR!!! libPropList is an old version. Please consider upgrading"
  4914.    echo "         to at least version ${lPLVersion}. Older versions have bugs that"
  4915.    echo "         may cause Window Maker to crash randomly."
  4916.    echo "         If your libPropList is older than 0.9.2 it will also prevent"
  4917.    echo "         Window Maker from compiling because new functions were"
  4918.    echo "         introduced since that version."
  4919.    echo "         Please read INSTALL to find where you can find libPropList,"
  4920.    echo "         and upgrade it before you proceed."
  4921.    exit 1
  4922. fi
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931.  
  4932. xpm=yes
  4933. # Check whether --enable-xpm or --disable-xpm was given.
  4934. if test "${enable_xpm+set}" = set; then
  4935.   enableval="$enable_xpm"
  4936.   xpm=$enableval
  4937. else
  4938.   xpm=yes
  4939. fi
  4940.  
  4941.  
  4942. if test "$xpm" = yes; then
  4943.     
  4944. LDFLAGS_old="$LDFLAGS"
  4945. LDFLAGS="$LDFLAGS $lib_search_path"
  4946. echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
  4947. echo "configure:4948: checking for XpmCreatePixmapFromData in -lXpm" >&5
  4948. ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
  4949. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4950.   echo $ac_n "(cached) $ac_c" 1>&6
  4951. else
  4952.   ac_save_LIBS="$LIBS"
  4953. LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
  4954. cat > conftest.$ac_ext <<EOF
  4955. #line 4956 "configure"
  4956. #include "confdefs.h"
  4957. /* Override any gcc2 internal prototype to avoid an error.  */
  4958. /* We use char because int might match the return type of a gcc2
  4959.     builtin and then its argument prototype would still apply.  */
  4960. char XpmCreatePixmapFromData();
  4961.  
  4962. int main() {
  4963. XpmCreatePixmapFromData()
  4964. ; return 0; }
  4965. EOF
  4966. if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4967.   rm -rf conftest*
  4968.   eval "ac_cv_lib_$ac_lib_var=yes"
  4969. else
  4970.   echo "configure: failed program was:" >&5
  4971.   cat conftest.$ac_ext >&5
  4972.   rm -rf conftest*
  4973.   eval "ac_cv_lib_$ac_lib_var=no"
  4974. fi
  4975. rm -f conftest*
  4976. LIBS="$ac_save_LIBS"
  4977.  
  4978. fi
  4979. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4980.   echo "$ac_t""yes" 1>&6
  4981.   yes=yes
  4982. else
  4983.   echo "$ac_t""no" 1>&6
  4984. no=no
  4985. fi
  4986.  
  4987. LDFLAGS="$LDFLAGS_old"
  4988.  
  4989.  
  4990.     if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
  4991.         
  4992. CPPFLAGS_old="$CPPFLAGS"
  4993. CPPFLAGS="$CPPFLAGS $inc_search_path"
  4994. ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
  4995. echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
  4996. echo "configure:4997: checking for X11/xpm.h" >&5
  4997. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4998.   echo $ac_n "(cached) $ac_c" 1>&6
  4999. else
  5000.   cat > conftest.$ac_ext <<EOF
  5001. #line 5002 "configure"
  5002. #include "confdefs.h"
  5003. #include <X11/xpm.h>
  5004. EOF
  5005. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5006. { (eval echo configure:5007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5007. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5008. if test -z "$ac_err"; then
  5009.   rm -rf conftest*
  5010.   eval "ac_cv_header_$ac_safe=yes"
  5011. else
  5012.   echo "$ac_err" >&5
  5013.   echo "configure: failed program was:" >&5
  5014.   cat conftest.$ac_ext >&5
  5015.   rm -rf conftest*
  5016.   eval "ac_cv_header_$ac_safe=no"
  5017. fi
  5018. rm -f conftest*
  5019. fi
  5020. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5021.   echo "$ac_t""yes" 1>&6
  5022.   :
  5023. else
  5024.   echo "$ac_t""no" 1>&6
  5025. fi
  5026.  
  5027. CPPFLAGS="$CPPFLAGS_old"
  5028.  
  5029.     if test "x$ac_cv_header_X11_xpm_h" = xyes; then
  5030.         GFXLIBS="$GFXLIBS -lXpm"
  5031.         supported_gfx="XPM"
  5032.         cat >> confdefs.h <<\EOF
  5033. #define USE_XPM 1
  5034. EOF
  5035.  
  5036.     else
  5037.         supported_gfx="builtin-XPM"
  5038.     fi
  5039.     fi
  5040. fi
  5041.  
  5042. # for wmlib
  5043.  
  5044. # for test
  5045.  
  5046.  
  5047.  
  5048.  
  5049.  
  5050.  
  5051.  
  5052. png=yes
  5053. # Check whether --enable-png or --disable-png was given.
  5054. if test "${enable_png+set}" = set; then
  5055.   enableval="$enable_png"
  5056.   png=$enableval
  5057. else
  5058.   png=yes
  5059. fi
  5060.  
  5061.  
  5062.  
  5063. if test "$png" = yes ; then
  5064.     
  5065. LDFLAGS_old="$LDFLAGS"
  5066. LDFLAGS="$LDFLAGS $lib_search_path"
  5067. echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
  5068. echo "configure:5069: checking for png_get_valid in -lpng" >&5
  5069. ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
  5070. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5071.   echo $ac_n "(cached) $ac_c" 1>&6
  5072. else
  5073.   ac_save_LIBS="$LIBS"
  5074. LIBS="-lpng -lz -lm $LIBS"
  5075. cat > conftest.$ac_ext <<EOF
  5076. #line 5077 "configure"
  5077. #include "confdefs.h"
  5078. /* Override any gcc2 internal prototype to avoid an error.  */
  5079. /* We use char because int might match the return type of a gcc2
  5080.     builtin and then its argument prototype would still apply.  */
  5081. char png_get_valid();
  5082.  
  5083. int main() {
  5084. png_get_valid()
  5085. ; return 0; }
  5086. EOF
  5087. if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5088.   rm -rf conftest*
  5089.   eval "ac_cv_lib_$ac_lib_var=yes"
  5090. else
  5091.   echo "configure: failed program was:" >&5
  5092.   cat conftest.$ac_ext >&5
  5093.   rm -rf conftest*
  5094.   eval "ac_cv_lib_$ac_lib_var=no"
  5095. fi
  5096. rm -f conftest*
  5097. LIBS="$ac_save_LIBS"
  5098.  
  5099. fi
  5100. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5101.   echo "$ac_t""yes" 1>&6
  5102.   yes=yes
  5103. else
  5104.   echo "$ac_t""no" 1>&6
  5105. no=no
  5106. fi
  5107.  
  5108. LDFLAGS="$LDFLAGS_old"
  5109.  
  5110.  
  5111.     if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
  5112.         
  5113. CPPFLAGS_old="$CPPFLAGS"
  5114. CPPFLAGS="$CPPFLAGS $inc_search_path"
  5115. ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  5116. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  5117. echo "configure:5118: checking for png.h" >&5
  5118. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5119.   echo $ac_n "(cached) $ac_c" 1>&6
  5120. else
  5121.   cat > conftest.$ac_ext <<EOF
  5122. #line 5123 "configure"
  5123. #include "confdefs.h"
  5124. #include <png.h>
  5125. EOF
  5126. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5127. { (eval echo configure:5128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5128. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5129. if test -z "$ac_err"; then
  5130.   rm -rf conftest*
  5131.   eval "ac_cv_header_$ac_safe=yes"
  5132. else
  5133.   echo "$ac_err" >&5
  5134.   echo "configure: failed program was:" >&5
  5135.   cat conftest.$ac_ext >&5
  5136.   rm -rf conftest*
  5137.   eval "ac_cv_header_$ac_safe=no"
  5138. fi
  5139. rm -f conftest*
  5140. fi
  5141. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5142.   echo "$ac_t""yes" 1>&6
  5143.   :
  5144. else
  5145.   echo "$ac_t""no" 1>&6
  5146. fi
  5147.  
  5148. CPPFLAGS="$CPPFLAGS_old"
  5149.  
  5150.     if test "x$ac_cv_header_png_h" = xyes; then
  5151.         GFXLIBS="$GFXLIBS -lpng -lz" 
  5152.         supported_gfx="$supported_gfx PNG"
  5153.             cat >> confdefs.h <<\EOF
  5154. #define USE_PNG 1
  5155. EOF
  5156.  
  5157.     fi
  5158.     fi
  5159. fi
  5160.  
  5161.  
  5162. jpeg=yes
  5163. ljpeg=""
  5164. # Check whether --enable-jpeg or --disable-jpeg was given.
  5165. if test "${enable_jpeg+set}" = set; then
  5166.   enableval="$enable_jpeg"
  5167.   jpeg=$enableval
  5168. else
  5169.   jpeg=yes
  5170. fi
  5171.  
  5172.  
  5173. if test "$jpeg" = yes; then
  5174.     
  5175. LDFLAGS_old="$LDFLAGS"
  5176. LDFLAGS="$LDFLAGS $lib_search_path"
  5177. echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
  5178. echo "configure:5179: checking for jpeg_destroy_compress in -ljpeg" >&5
  5179. ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
  5180. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5181.   echo $ac_n "(cached) $ac_c" 1>&6
  5182. else
  5183.   ac_save_LIBS="$LIBS"
  5184. LIBS="-ljpeg  $LIBS"
  5185. cat > conftest.$ac_ext <<EOF
  5186. #line 5187 "configure"
  5187. #include "confdefs.h"
  5188. /* Override any gcc2 internal prototype to avoid an error.  */
  5189. /* We use char because int might match the return type of a gcc2
  5190.     builtin and then its argument prototype would still apply.  */
  5191. char jpeg_destroy_compress();
  5192.  
  5193. int main() {
  5194. jpeg_destroy_compress()
  5195. ; return 0; }
  5196. EOF
  5197. if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5198.   rm -rf conftest*
  5199.   eval "ac_cv_lib_$ac_lib_var=yes"
  5200. else
  5201.   echo "configure: failed program was:" >&5
  5202.   cat conftest.$ac_ext >&5
  5203.   rm -rf conftest*
  5204.   eval "ac_cv_lib_$ac_lib_var=no"
  5205. fi
  5206. rm -f conftest*
  5207. LIBS="$ac_save_LIBS"
  5208.  
  5209. fi
  5210. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5211.   echo "$ac_t""yes" 1>&6
  5212.   yes=yes
  5213. else
  5214.   echo "$ac_t""no" 1>&6
  5215. no=no
  5216. fi
  5217.  
  5218. LDFLAGS="$LDFLAGS_old"
  5219.  
  5220.  
  5221.     if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
  5222.  
  5223.         ljpeg="-ljpeg"
  5224.  
  5225.     
  5226. CPPFLAGS_old="$CPPFLAGS"
  5227. CPPFLAGS="$CPPFLAGS $inc_search_path"
  5228. ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
  5229. echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
  5230. echo "configure:5231: checking for jpeglib.h" >&5
  5231. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5232.   echo $ac_n "(cached) $ac_c" 1>&6
  5233. else
  5234.   cat > conftest.$ac_ext <<EOF
  5235. #line 5236 "configure"
  5236. #include "confdefs.h"
  5237. #include <jpeglib.h>
  5238. EOF
  5239. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5240. { (eval echo configure:5241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5241. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5242. if test -z "$ac_err"; then
  5243.   rm -rf conftest*
  5244.   eval "ac_cv_header_$ac_safe=yes"
  5245. else
  5246.   echo "$ac_err" >&5
  5247.   echo "configure: failed program was:" >&5
  5248.   cat conftest.$ac_ext >&5
  5249.   rm -rf conftest*
  5250.   eval "ac_cv_header_$ac_safe=no"
  5251. fi
  5252. rm -f conftest*
  5253. fi
  5254. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5255.   echo "$ac_t""yes" 1>&6
  5256.   :
  5257. else
  5258.   echo "$ac_t""no" 1>&6
  5259. fi
  5260.  
  5261. CPPFLAGS="$CPPFLAGS_old"
  5262.  
  5263.     if test "x$ac_cv_header_jpeglib_h" = xyes; then
  5264.         GFXLIBS="$GFXLIBS -ljpeg"
  5265.         supported_gfx="$supported_gfx JPEG"
  5266.             cat >> confdefs.h <<\EOF
  5267. #define USE_JPEG 1
  5268. EOF
  5269.  
  5270.     fi
  5271.     fi
  5272. fi
  5273.  
  5274.  
  5275. gif=yes
  5276. # Check whether --enable-gif or --disable-gif was given.
  5277. if test "${enable_gif+set}" = set; then
  5278.   enableval="$enable_gif"
  5279.   gif=$enableval
  5280. else
  5281.   gif=yes
  5282. fi
  5283.  
  5284.  
  5285. if test "$gif" = yes; then
  5286.     my_libname=""
  5287.     
  5288. LDFLAGS_old="$LDFLAGS"
  5289. LDFLAGS="$LDFLAGS $lib_search_path"
  5290. echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
  5291. echo "configure:5292: checking for DGifOpenFileName in -lungif" >&5
  5292. ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
  5293. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5294.   echo $ac_n "(cached) $ac_c" 1>&6
  5295. else
  5296.   ac_save_LIBS="$LIBS"
  5297. LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
  5298. cat > conftest.$ac_ext <<EOF
  5299. #line 5300 "configure"
  5300. #include "confdefs.h"
  5301. /* Override any gcc2 internal prototype to avoid an error.  */
  5302. /* We use char because int might match the return type of a gcc2
  5303.     builtin and then its argument prototype would still apply.  */
  5304. char DGifOpenFileName();
  5305.  
  5306. int main() {
  5307. DGifOpenFileName()
  5308. ; return 0; }
  5309. EOF
  5310. if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5311.   rm -rf conftest*
  5312.   eval "ac_cv_lib_$ac_lib_var=yes"
  5313. else
  5314.   echo "configure: failed program was:" >&5
  5315.   cat conftest.$ac_ext >&5
  5316.   rm -rf conftest*
  5317.   eval "ac_cv_lib_$ac_lib_var=no"
  5318. fi
  5319. rm -f conftest*
  5320. LIBS="$ac_save_LIBS"
  5321.  
  5322. fi
  5323. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5324.   echo "$ac_t""yes" 1>&6
  5325.   yes=yes
  5326. else
  5327.   echo "$ac_t""no" 1>&6
  5328. no=no
  5329. fi
  5330.  
  5331. LDFLAGS="$LDFLAGS_old"
  5332.  
  5333.     if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
  5334.         my_libname=-lungif
  5335.     fi
  5336.     if test "x$my_libname" = x; then
  5337.         
  5338. LDFLAGS_old="$LDFLAGS"
  5339. LDFLAGS="$LDFLAGS $lib_search_path"
  5340. echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
  5341. echo "configure:5342: checking for DGifOpenFileName in -lgif" >&5
  5342. ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
  5343. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5344.   echo $ac_n "(cached) $ac_c" 1>&6
  5345. else
  5346.   ac_save_LIBS="$LIBS"
  5347. LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
  5348. cat > conftest.$ac_ext <<EOF
  5349. #line 5350 "configure"
  5350. #include "confdefs.h"
  5351. /* Override any gcc2 internal prototype to avoid an error.  */
  5352. /* We use char because int might match the return type of a gcc2
  5353.     builtin and then its argument prototype would still apply.  */
  5354. char DGifOpenFileName();
  5355.  
  5356. int main() {
  5357. DGifOpenFileName()
  5358. ; return 0; }
  5359. EOF
  5360. if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5361.   rm -rf conftest*
  5362.   eval "ac_cv_lib_$ac_lib_var=yes"
  5363. else
  5364.   echo "configure: failed program was:" >&5
  5365.   cat conftest.$ac_ext >&5
  5366.   rm -rf conftest*
  5367.   eval "ac_cv_lib_$ac_lib_var=no"
  5368. fi
  5369. rm -f conftest*
  5370. LIBS="$ac_save_LIBS"
  5371.  
  5372. fi
  5373. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5374.   echo "$ac_t""yes" 1>&6
  5375.   yes=yes
  5376. else
  5377.   echo "$ac_t""no" 1>&6
  5378. no=no
  5379. fi
  5380.  
  5381. LDFLAGS="$LDFLAGS_old"
  5382.  
  5383.         if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
  5384.             my_libname=-lgif
  5385.         fi
  5386.     fi
  5387.  
  5388.     if test "$my_libname" != x; then
  5389.     
  5390. CPPFLAGS_old="$CPPFLAGS"
  5391. CPPFLAGS="$CPPFLAGS $inc_search_path"
  5392. ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
  5393. echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
  5394. echo "configure:5395: checking for gif_lib.h" >&5
  5395. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5396.   echo $ac_n "(cached) $ac_c" 1>&6
  5397. else
  5398.   cat > conftest.$ac_ext <<EOF
  5399. #line 5400 "configure"
  5400. #include "confdefs.h"
  5401. #include <gif_lib.h>
  5402. EOF
  5403. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5404. { (eval echo configure:5405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5405. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5406. if test -z "$ac_err"; then
  5407.   rm -rf conftest*
  5408.   eval "ac_cv_header_$ac_safe=yes"
  5409. else
  5410.   echo "$ac_err" >&5
  5411.   echo "configure: failed program was:" >&5
  5412.   cat conftest.$ac_ext >&5
  5413.   rm -rf conftest*
  5414.   eval "ac_cv_header_$ac_safe=no"
  5415. fi
  5416. rm -f conftest*
  5417. fi
  5418. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5419.   echo "$ac_t""yes" 1>&6
  5420.   :
  5421. else
  5422.   echo "$ac_t""no" 1>&6
  5423. fi
  5424.  
  5425. CPPFLAGS="$CPPFLAGS_old"
  5426.  
  5427.     if test "x$ac_cv_header_gif_lib_h" = xyes; then
  5428.         GFXLIBS="$GFXLIBS $my_libname"
  5429.         supported_gfx="$supported_gfx GIF"
  5430.             cat >> confdefs.h <<\EOF
  5431. #define USE_GIF 1
  5432. EOF
  5433.  
  5434.     fi
  5435.     fi
  5436. fi
  5437.  
  5438.  
  5439.  
  5440. # Check whether --enable-tiff or --disable-tiff was given.
  5441. if test "${enable_tiff+set}" = set; then
  5442.   enableval="$enable_tiff"
  5443.   tif=$enableval
  5444. else
  5445.   tif=yes
  5446. fi
  5447.  
  5448.  
  5449. #
  5450. # TIFF can optionally have JPEG and/or zlib support. Must find out
  5451. # when they are supported so that correct library flags are passed during
  5452. # detection and linkage
  5453. #
  5454. #
  5455. # By default use xpm icons if tiff is not found.
  5456. ICONEXT="xpm"
  5457. #
  5458.  
  5459. if test "$tif" = yes; then
  5460.     my_libname=""
  5461.     
  5462. LDFLAGS_old="$LDFLAGS"
  5463. LDFLAGS="$LDFLAGS $lib_search_path"
  5464. echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
  5465. echo "configure:5466: checking for TIFFGetVersion in -ltiff" >&5
  5466. ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
  5467. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5468.   echo $ac_n "(cached) $ac_c" 1>&6
  5469. else
  5470.   ac_save_LIBS="$LIBS"
  5471. LIBS="-ltiff -lm $LIBS"
  5472. cat > conftest.$ac_ext <<EOF
  5473. #line 5474 "configure"
  5474. #include "confdefs.h"
  5475. /* Override any gcc2 internal prototype to avoid an error.  */
  5476. /* We use char because int might match the return type of a gcc2
  5477.     builtin and then its argument prototype would still apply.  */
  5478. char TIFFGetVersion();
  5479.  
  5480. int main() {
  5481. TIFFGetVersion()
  5482. ; return 0; }
  5483. EOF
  5484. if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5485.   rm -rf conftest*
  5486.   eval "ac_cv_lib_$ac_lib_var=yes"
  5487. else
  5488.   echo "configure: failed program was:" >&5
  5489.   cat conftest.$ac_ext >&5
  5490.   rm -rf conftest*
  5491.   eval "ac_cv_lib_$ac_lib_var=no"
  5492. fi
  5493. rm -f conftest*
  5494. LIBS="$ac_save_LIBS"
  5495.  
  5496. fi
  5497. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5498.   echo "$ac_t""yes" 1>&6
  5499.   yes=yes
  5500. else
  5501.   echo "$ac_t""no" 1>&6
  5502. no=no
  5503. fi
  5504.  
  5505. LDFLAGS="$LDFLAGS_old"
  5506.  
  5507.     if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
  5508.         my_libname="-ltiff"
  5509.     fi
  5510.     unset ac_cv_lib_tiff_TIFFGetVersion
  5511.     if test "x$my_libname" = x; then
  5512.         
  5513. LDFLAGS_old="$LDFLAGS"
  5514. LDFLAGS="$LDFLAGS $lib_search_path"
  5515. echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
  5516. echo "configure:5517: checking for TIFFGetVersion in -ltiff" >&5
  5517. ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
  5518. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5519.   echo $ac_n "(cached) $ac_c" 1>&6
  5520. else
  5521.   ac_save_LIBS="$LIBS"
  5522. LIBS="-ltiff $ljpeg -lz -lm $LIBS"
  5523. cat > conftest.$ac_ext <<EOF
  5524. #line 5525 "configure"
  5525. #include "confdefs.h"
  5526. /* Override any gcc2 internal prototype to avoid an error.  */
  5527. /* We use char because int might match the return type of a gcc2
  5528.     builtin and then its argument prototype would still apply.  */
  5529. char TIFFGetVersion();
  5530.  
  5531. int main() {
  5532. TIFFGetVersion()
  5533. ; return 0; }
  5534. EOF
  5535. if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5536.   rm -rf conftest*
  5537.   eval "ac_cv_lib_$ac_lib_var=yes"
  5538. else
  5539.   echo "configure: failed program was:" >&5
  5540.   cat conftest.$ac_ext >&5
  5541.   rm -rf conftest*
  5542.   eval "ac_cv_lib_$ac_lib_var=no"
  5543. fi
  5544. rm -f conftest*
  5545. LIBS="$ac_save_LIBS"
  5546.  
  5547. fi
  5548. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5549.   echo "$ac_t""yes" 1>&6
  5550.   yes=yes
  5551. else
  5552.   echo "$ac_t""no" 1>&6
  5553. no=no
  5554. fi
  5555.  
  5556. LDFLAGS="$LDFLAGS_old"
  5557.  
  5558.     if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
  5559.         my_libname="-ltiff -lz"
  5560.     fi
  5561.     fi
  5562.  
  5563.     if test "x$my_libname" = x; then
  5564.     
  5565. LDFLAGS_old="$LDFLAGS"
  5566. LDFLAGS="$LDFLAGS $lib_search_path"
  5567. echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
  5568. echo "configure:5569: checking for TIFFGetVersion in -ltiff34" >&5
  5569. ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
  5570. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5571.   echo $ac_n "(cached) $ac_c" 1>&6
  5572. else
  5573.   ac_save_LIBS="$LIBS"
  5574. LIBS="-ltiff34 $ljpeg -lm $LIBS"
  5575. cat > conftest.$ac_ext <<EOF
  5576. #line 5577 "configure"
  5577. #include "confdefs.h"
  5578. /* Override any gcc2 internal prototype to avoid an error.  */
  5579. /* We use char because int might match the return type of a gcc2
  5580.     builtin and then its argument prototype would still apply.  */
  5581. char TIFFGetVersion();
  5582.  
  5583. int main() {
  5584. TIFFGetVersion()
  5585. ; return 0; }
  5586. EOF
  5587. if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5588.   rm -rf conftest*
  5589.   eval "ac_cv_lib_$ac_lib_var=yes"
  5590. else
  5591.   echo "configure: failed program was:" >&5
  5592.   cat conftest.$ac_ext >&5
  5593.   rm -rf conftest*
  5594.   eval "ac_cv_lib_$ac_lib_var=no"
  5595. fi
  5596. rm -f conftest*
  5597. LIBS="$ac_save_LIBS"
  5598.  
  5599. fi
  5600. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5601.   echo "$ac_t""yes" 1>&6
  5602.   yes=yes
  5603. else
  5604.   echo "$ac_t""no" 1>&6
  5605. no=no
  5606. fi
  5607.  
  5608. LDFLAGS="$LDFLAGS_old"
  5609.  
  5610.     if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
  5611.         my_libname="-ltiff34"
  5612.     fi
  5613.     fi
  5614.  
  5615.  
  5616.     if test "x$my_libname" != x; then
  5617.     
  5618. CPPFLAGS_old="$CPPFLAGS"
  5619. CPPFLAGS="$CPPFLAGS $inc_search_path"
  5620. ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
  5621. echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
  5622. echo "configure:5623: checking for tiffio.h" >&5
  5623. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5624.   echo $ac_n "(cached) $ac_c" 1>&6
  5625. else
  5626.   cat > conftest.$ac_ext <<EOF
  5627. #line 5628 "configure"
  5628. #include "confdefs.h"
  5629. #include <tiffio.h>
  5630. EOF
  5631. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5632. { (eval echo configure:5633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5633. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5634. if test -z "$ac_err"; then
  5635.   rm -rf conftest*
  5636.   eval "ac_cv_header_$ac_safe=yes"
  5637. else
  5638.   echo "$ac_err" >&5
  5639.   echo "configure: failed program was:" >&5
  5640.   cat conftest.$ac_ext >&5
  5641.   rm -rf conftest*
  5642.   eval "ac_cv_header_$ac_safe=no"
  5643. fi
  5644. rm -f conftest*
  5645. fi
  5646. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5647.   echo "$ac_t""yes" 1>&6
  5648.   :
  5649. else
  5650.   echo "$ac_t""no" 1>&6
  5651. fi
  5652.  
  5653. CPPFLAGS="$CPPFLAGS_old"
  5654.  
  5655.     if test "x$ac_cv_header_tiffio_h" = xyes; then
  5656.         GFXLIBS="$my_libname $GFXLIBS"
  5657.         ICONEXT="tiff"
  5658.             supported_gfx="$supported_gfx TIFF"
  5659.             cat >> confdefs.h <<\EOF
  5660. #define USE_TIFF 1
  5661. EOF
  5662.         
  5663.     fi
  5664.     fi
  5665. fi
  5666.  
  5667. LIBRARY_SEARCH_PATH="$lib_search_path"
  5668. HEADER_SEARCH_PATH="$inc_search_path"
  5669.  
  5670.  
  5671.  
  5672.  
  5673.  
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680. # Check whether --enable-debug or --disable-debug was given.
  5681. if test "${enable_debug+set}" = set; then
  5682.   enableval="$enable_debug"
  5683.   :
  5684. else
  5685.   enable_debug=no
  5686. fi
  5687.  
  5688.  
  5689. if test "$enable_debug" = yes; then
  5690.     DFLAGS="-g -DDEBUG"
  5691. #    Efence makes things too slow. Add it by hand in the Makefiles
  5692. #    if it is really needed.
  5693. #    AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
  5694. else
  5695.     DFLAGS="-DWITHOUT_NANA"
  5696. fi
  5697.  
  5698.  
  5699.  
  5700. sound=yes
  5701. # Check whether --enable-sound or --disable-sound was given.
  5702. if test "${enable_sound+set}" = set; then
  5703.   enableval="$enable_sound"
  5704.   sound=$enableval
  5705. else
  5706.   sound=yes
  5707. fi
  5708.  
  5709. if test "$sound" = yes; then    
  5710.         cat >> confdefs.h <<\EOF
  5711. #define WMSOUND 1
  5712. EOF
  5713.  
  5714. fi
  5715.  
  5716.  
  5717. # AC_PREFIX_PROGRAM(wmaker)
  5718.  
  5719. # Check whether --with-pixmapdir or --without-pixmapdir was given.
  5720. if test "${with_pixmapdir+set}" = set; then
  5721.   withval="$with_pixmapdir"
  5722.   :
  5723. fi
  5724.  
  5725.  
  5726. if test "x$with_pixmapdir" != "x"; then
  5727.     pixmapdir=$with_pixmapdir
  5728. else
  5729.     pixmapdir=`eval echo ${datadir}/pixmaps`
  5730. fi
  5731.  
  5732. cat >> confdefs.h <<EOF
  5733. #define PIXMAPDIR "$pixmapdir"
  5734. EOF
  5735.  
  5736.  
  5737. pkgdatadir=`eval echo $datadir`
  5738. cat >> confdefs.h <<EOF
  5739. #define PKGDATADIR "$pkgdatadir/WindowMaker"
  5740. EOF
  5741.  
  5742.  
  5743. _sysconfdir=`eval echo $sysconfdir`
  5744. cat >> confdefs.h <<EOF
  5745. #define SYSCONFDIR "$_sysconfdir"
  5746. EOF
  5747.  
  5748.  
  5749.  
  5750.  
  5751. appspath=""
  5752.  
  5753. # Check whether --with-appspath or --without-appspath was given.
  5754. if test "${with_appspath+set}" = set; then
  5755.   withval="$with_appspath"
  5756.   appspath=$withval 
  5757. fi
  5758.  
  5759.  
  5760. if test "x$appspath" = "x"; then
  5761.     gnustepdir='$(prefix)/GNUstep'
  5762.  
  5763.     if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
  5764.     gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
  5765.     gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
  5766.     fi
  5767.  
  5768.     with_appspath=$gnustepdir/Apps
  5769. fi
  5770.  
  5771. wprefsdir=$with_appspath/WPrefs.app
  5772.  
  5773.  
  5774.  
  5775.  
  5776.  
  5777. # Check whether --enable-single-icon or --disable-single-icon was given.
  5778. if test "${enable_single_icon+set}" = set; then
  5779.   enableval="$enable_single_icon"
  5780.   if test "$enableval" = yes; then
  5781.     cat >> confdefs.h <<\EOF
  5782. #define REDUCE_APPICONS 1
  5783. EOF
  5784.  
  5785. fi
  5786.  
  5787. fi
  5788.  
  5789.  
  5790. # Check whether --enable-usermenu or --disable-usermenu was given.
  5791. if test "${enable_usermenu+set}" = set; then
  5792.   enableval="$enable_usermenu"
  5793.   if test "$enableval" = yes; then
  5794.     cat >> confdefs.h <<\EOF
  5795. #define USER_MENU 1
  5796. EOF
  5797.  
  5798. fi
  5799.  
  5800. fi
  5801.  
  5802.  
  5803.  
  5804.   
  5805.  
  5806. trap '' 1 2 15
  5807. cat > confcache <<\EOF
  5808. # This file is a shell script that caches the results of configure
  5809. # tests run on this system so they can be shared between configure
  5810. # scripts and configure runs.  It is not useful on other systems.
  5811. # If it contains results you don't want to keep, you may remove or edit it.
  5812. #
  5813. # By default, configure uses ./config.cache as the cache file,
  5814. # creating it if it does not exist already.  You can give configure
  5815. # the --cache-file=FILE option to use a different cache file; that is
  5816. # what configure does when it calls configure scripts in
  5817. # subdirectories, so they share the cache.
  5818. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5819. # config.status only pays attention to the cache file if you give it the
  5820. # --recheck option to rerun configure.
  5821. #
  5822. EOF
  5823. # The following way of writing the cache mishandles newlines in values,
  5824. # but we know of no workaround that is simple, portable, and efficient.
  5825. # So, don't put newlines in cache variables' values.
  5826. # Ultrix sh set writes to stderr and can't be redirected directly,
  5827. # and sets the high bit in the cache file unless we assign to the vars.
  5828. (set) 2>&1 |
  5829.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5830.   *ac_space=\ *)
  5831.     # `set' does not quote correctly, so add quotes (double-quote substitution
  5832.     # turns \\\\ into \\, and sed turns \\ into \).
  5833.     sed -n \
  5834.       -e "s/'/'\\\\''/g" \
  5835.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5836.     ;;
  5837.   *)
  5838.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  5839.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5840.     ;;
  5841.   esac >> confcache
  5842. if cmp -s $cache_file confcache; then
  5843.   :
  5844. else
  5845.   if test -w $cache_file; then
  5846.     echo "updating cache $cache_file"
  5847.     cat confcache > $cache_file
  5848.   else
  5849.     echo "not updating unwritable cache $cache_file"
  5850.   fi
  5851. fi
  5852. rm -f confcache
  5853.  
  5854. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5855.  
  5856. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5857. # Let make expand exec_prefix.
  5858. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5859.  
  5860. # Any assignment to VPATH causes Sun make to only execute
  5861. # the first set of double-colon rules, so remove it if not needed.
  5862. # If there is a colon in the path, we need to keep it.
  5863. if test "x$srcdir" = x.; then
  5864.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5865. fi
  5866.  
  5867. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5868.  
  5869. DEFS=-DHAVE_CONFIG_H
  5870.  
  5871. # Without the "./", some shells look in PATH for config.status.
  5872. : ${CONFIG_STATUS=./config.status}
  5873.  
  5874. echo creating $CONFIG_STATUS
  5875. rm -f $CONFIG_STATUS
  5876. cat > $CONFIG_STATUS <<EOF
  5877. #! /bin/sh
  5878. # Generated automatically by configure.
  5879. # Run this file to recreate the current configuration.
  5880. # This directory was configured as follows,
  5881. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5882. #
  5883. # $0 $ac_configure_args
  5884. #
  5885. # Compiler output produced by configure, useful for debugging
  5886. # configure, is in ./config.log if it exists.
  5887.  
  5888. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5889. for ac_option
  5890. do
  5891.   case "\$ac_option" in
  5892.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5893.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5894.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5895.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5896.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  5897.     exit 0 ;;
  5898.   -help | --help | --hel | --he | --h)
  5899.     echo "\$ac_cs_usage"; exit 0 ;;
  5900.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5901.   esac
  5902. done
  5903.  
  5904. ac_given_srcdir=$srcdir
  5905. ac_given_INSTALL="$INSTALL"
  5906.  
  5907. trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
  5908.     WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
  5909.     wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
  5910.     WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
  5911.     WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
  5912.     WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
  5913.     WindowMaker/Themes/Makefile \
  5914.     WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
  5915.     WPrefs.app/po/Makefile contrib/WindowMaker.spec  src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5916. EOF
  5917. cat >> $CONFIG_STATUS <<EOF
  5918.  
  5919. # Protect against being on the right side of a sed subst in config.status.
  5920. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5921.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5922. $ac_vpsub
  5923. $extrasub
  5924. s%@SHELL@%$SHELL%g
  5925. s%@CFLAGS@%$CFLAGS%g
  5926. s%@CPPFLAGS@%$CPPFLAGS%g
  5927. s%@CXXFLAGS@%$CXXFLAGS%g
  5928. s%@FFLAGS@%$FFLAGS%g
  5929. s%@DEFS@%$DEFS%g
  5930. s%@LDFLAGS@%$LDFLAGS%g
  5931. s%@LIBS@%$LIBS%g
  5932. s%@exec_prefix@%$exec_prefix%g
  5933. s%@prefix@%$prefix%g
  5934. s%@program_transform_name@%$program_transform_name%g
  5935. s%@bindir@%$bindir%g
  5936. s%@sbindir@%$sbindir%g
  5937. s%@libexecdir@%$libexecdir%g
  5938. s%@datadir@%$datadir%g
  5939. s%@sysconfdir@%$sysconfdir%g
  5940. s%@sharedstatedir@%$sharedstatedir%g
  5941. s%@localstatedir@%$localstatedir%g
  5942. s%@libdir@%$libdir%g
  5943. s%@includedir@%$includedir%g
  5944. s%@oldincludedir@%$oldincludedir%g
  5945. s%@infodir@%$infodir%g
  5946. s%@mandir@%$mandir%g
  5947. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5948. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5949. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5950. s%@PACKAGE@%$PACKAGE%g
  5951. s%@VERSION@%$VERSION%g
  5952. s%@ACLOCAL@%$ACLOCAL%g
  5953. s%@AUTOCONF@%$AUTOCONF%g
  5954. s%@AUTOMAKE@%$AUTOMAKE%g
  5955. s%@AUTOHEADER@%$AUTOHEADER%g
  5956. s%@MAKEINFO@%$MAKEINFO%g
  5957. s%@SET_MAKE@%$SET_MAKE%g
  5958. s%@host@%$host%g
  5959. s%@host_alias@%$host_alias%g
  5960. s%@host_cpu@%$host_cpu%g
  5961. s%@host_vendor@%$host_vendor%g
  5962. s%@host_os@%$host_os%g
  5963. s%@build@%$build%g
  5964. s%@build_alias@%$build_alias%g
  5965. s%@build_cpu@%$build_cpu%g
  5966. s%@build_vendor@%$build_vendor%g
  5967. s%@build_os@%$build_os%g
  5968. s%@RANLIB@%$RANLIB%g
  5969. s%@CC@%$CC%g
  5970. s%@LN_S@%$LN_S%g
  5971. s%@LIBTOOL@%$LIBTOOL%g
  5972. s%@CPP@%$CPP%g
  5973. s%@ALLOCA@%$ALLOCA%g
  5974. s%@CPP_PATH@%$CPP_PATH%g
  5975. s%@XGETTEXT@%$XGETTEXT%g
  5976. s%@DLLIBS@%$DLLIBS%g
  5977. s%@INTLIBS@%$INTLIBS%g
  5978. s%@NLSDIR@%$NLSDIR%g
  5979. s%@MOFILES@%$MOFILES%g
  5980. s%@WPMOFILES@%$WPMOFILES%g
  5981. s%@supported_locales@%$supported_locales%g
  5982. s%@LITE@%$LITE%g
  5983. s%@NETLIBS@%$NETLIBS%g
  5984. s%@X_CFLAGS@%$X_CFLAGS%g
  5985. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  5986. s%@X_LIBS@%$X_LIBS%g
  5987. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  5988. s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
  5989. s%@LIBPL@%$LIBPL%g
  5990. s%@XCFLAGS@%$XCFLAGS%g
  5991. s%@XLFLAGS@%$XLFLAGS%g
  5992. s%@XLIBS@%$XLIBS%g
  5993. s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
  5994. s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
  5995. s%@GFXLIBS@%$GFXLIBS%g
  5996. s%@ICONEXT@%$ICONEXT%g
  5997. s%@DFLAGS@%$DFLAGS%g
  5998. s%@wprefsdir@%$wprefsdir%g
  5999.  
  6000. CEOF
  6001. EOF
  6002.  
  6003. cat >> $CONFIG_STATUS <<\EOF
  6004.  
  6005. # Split the substitutions into bite-sized pieces for seds with
  6006. # small command number limits, like on Digital OSF/1 and HP-UX.
  6007. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6008. ac_file=1 # Number of current file.
  6009. ac_beg=1 # First line for current file.
  6010. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6011. ac_more_lines=:
  6012. ac_sed_cmds=""
  6013. while $ac_more_lines; do
  6014.   if test $ac_beg -gt 1; then
  6015.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6016.   else
  6017.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6018.   fi
  6019.   if test ! -s conftest.s$ac_file; then
  6020.     ac_more_lines=false
  6021.     rm -f conftest.s$ac_file
  6022.   else
  6023.     if test -z "$ac_sed_cmds"; then
  6024.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6025.     else
  6026.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6027.     fi
  6028.     ac_file=`expr $ac_file + 1`
  6029.     ac_beg=$ac_end
  6030.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6031.   fi
  6032. done
  6033. if test -z "$ac_sed_cmds"; then
  6034.   ac_sed_cmds=cat
  6035. fi
  6036. EOF
  6037.  
  6038. cat >> $CONFIG_STATUS <<EOF
  6039.  
  6040. CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
  6041.     WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
  6042.     wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
  6043.     WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
  6044.     WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
  6045.     WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
  6046.     WindowMaker/Themes/Makefile \
  6047.     WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
  6048.     WPrefs.app/po/Makefile contrib/WindowMaker.spec "}
  6049. EOF
  6050. cat >> $CONFIG_STATUS <<\EOF
  6051. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6052.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6053.   case "$ac_file" in
  6054.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6055.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6056.   *) ac_file_in="${ac_file}.in" ;;
  6057.   esac
  6058.  
  6059.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6060.  
  6061.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6062.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6063.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6064.     # The file is in a subdirectory.
  6065.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6066.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6067.     # A "../" for each directory in $ac_dir_suffix.
  6068.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6069.   else
  6070.     ac_dir_suffix= ac_dots=
  6071.   fi
  6072.  
  6073.   case "$ac_given_srcdir" in
  6074.   .)  srcdir=.
  6075.       if test -z "$ac_dots"; then top_srcdir=.
  6076.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6077.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6078.   *) # Relative path.
  6079.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6080.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6081.   esac
  6082.  
  6083.   case "$ac_given_INSTALL" in
  6084.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6085.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6086.   esac
  6087.  
  6088.   echo creating "$ac_file"
  6089.   rm -f "$ac_file"
  6090.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6091.   case "$ac_file" in
  6092.   *Makefile*) ac_comsub="1i\\
  6093. # $configure_input" ;;
  6094.   *) ac_comsub= ;;
  6095.   esac
  6096.  
  6097.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6098.   sed -e "$ac_comsub
  6099. s%@configure_input@%$configure_input%g
  6100. s%@srcdir@%$srcdir%g
  6101. s%@top_srcdir@%$top_srcdir%g
  6102. s%@INSTALL@%$INSTALL%g
  6103. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6104. fi; done
  6105. rm -f conftest.s*
  6106.  
  6107. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6108. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6109. #
  6110. # ac_d sets the value in "#define NAME VALUE" lines.
  6111. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  6112. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  6113. ac_dC='\3'
  6114. ac_dD='%g'
  6115. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6116. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6117. ac_uB='\([     ]\)%\1#\2define\3'
  6118. ac_uC=' '
  6119. ac_uD='\4%g'
  6120. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6121. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6122. ac_eB='$%\1#\2define\3'
  6123. ac_eC=' '
  6124. ac_eD='%g'
  6125.  
  6126. if test "${CONFIG_HEADERS+set}" != set; then
  6127. EOF
  6128. cat >> $CONFIG_STATUS <<EOF
  6129.   CONFIG_HEADERS="src/config.h"
  6130. EOF
  6131. cat >> $CONFIG_STATUS <<\EOF
  6132. fi
  6133. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  6134.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6135.   case "$ac_file" in
  6136.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6137.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6138.   *) ac_file_in="${ac_file}.in" ;;
  6139.   esac
  6140.  
  6141.   echo creating $ac_file
  6142.  
  6143.   rm -f conftest.frag conftest.in conftest.out
  6144.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6145.   cat $ac_file_inputs > conftest.in
  6146.  
  6147. EOF
  6148.  
  6149. # Transform confdefs.h into a sed script conftest.vals that substitutes
  6150. # the proper values into config.h.in to produce config.h.  And first:
  6151. # Protect against being on the right side of a sed subst in config.status.
  6152. # Protect against being in an unquoted here document in config.status.
  6153. rm -f conftest.vals
  6154. cat > conftest.hdr <<\EOF
  6155. s/[\\&%]/\\&/g
  6156. s%[\\$`]%\\&%g
  6157. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  6158. s%ac_d%ac_u%gp
  6159. s%ac_u%ac_e%gp
  6160. EOF
  6161. sed -n -f conftest.hdr confdefs.h > conftest.vals
  6162. rm -f conftest.hdr
  6163.  
  6164. # This sed command replaces #undef with comments.  This is necessary, for
  6165. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6166. # on some systems where configure will not decide to define it.
  6167. cat >> conftest.vals <<\EOF
  6168. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  6169. EOF
  6170.  
  6171. # Break up conftest.vals because some shells have a limit on
  6172. # the size of here documents, and old seds have small limits too.
  6173.  
  6174. rm -f conftest.tail
  6175. while :
  6176. do
  6177.   ac_lines=`grep -c . conftest.vals`
  6178.   # grep -c gives empty output for an empty file on some AIX systems.
  6179.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6180.   # Write a limited-size here document to conftest.frag.
  6181.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  6182.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  6183.   echo 'CEOF
  6184.   sed -f conftest.frag conftest.in > conftest.out
  6185.   rm -f conftest.in
  6186.   mv conftest.out conftest.in
  6187. ' >> $CONFIG_STATUS
  6188.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  6189.   rm -f conftest.vals
  6190.   mv conftest.tail conftest.vals
  6191. done
  6192. rm -f conftest.vals
  6193.  
  6194. cat >> $CONFIG_STATUS <<\EOF
  6195.   rm -f conftest.frag conftest.h
  6196.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  6197.   cat conftest.in >> conftest.h
  6198.   rm -f conftest.in
  6199.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  6200.     echo "$ac_file is unchanged"
  6201.     rm -f conftest.h
  6202.   else
  6203.     # Remove last slash and all that follows it.  Not all systems have dirname.
  6204.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6205.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6206.       # The file is in a subdirectory.
  6207.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  6208.     fi
  6209.     rm -f $ac_file
  6210.     mv conftest.h $ac_file
  6211.   fi
  6212. fi; done
  6213.  
  6214. EOF
  6215. cat >> $CONFIG_STATUS <<EOF
  6216.  
  6217.  
  6218. EOF
  6219. cat >> $CONFIG_STATUS <<\EOF
  6220. test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
  6221.  
  6222. exit 0
  6223. EOF
  6224. chmod +x $CONFIG_STATUS
  6225. rm -fr confdefs* $ac_clean_files
  6226. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  6227.  
  6228.  
  6229.  
  6230.  
  6231.  
  6232.  
  6233.  
  6234. cat <<EOF >get-wraster-flags
  6235. #!/bin/sh
  6236.  
  6237. prefix="$prefix"
  6238. exec_prefix=\$prefix
  6239.  
  6240. WCFLAGS="-I\$prefix/include $inc_search_path"
  6241. WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
  6242. WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
  6243.  
  6244. usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
  6245.  
  6246. if test \$# -eq 0; then
  6247.       echo "\${usage}" 1>&2
  6248.       exit 1
  6249. fi
  6250.  
  6251. while test \$# -gt 0; do
  6252.   case \$1 in
  6253.     --cflags)
  6254.     echo \$WCFLAGS
  6255.         ;;
  6256.     --ldflags|--lflags)
  6257.     echo \$WLFLAGS
  6258.         ;;
  6259.     --libs)
  6260.     echo \$WLIBS
  6261.         ;;
  6262.     *)
  6263.         echo "\${usage}" 1>&2
  6264.         exit 1
  6265.           ;;
  6266.   esac
  6267.   shift
  6268. done
  6269.  
  6270.  
  6271. EOF
  6272.  
  6273. cat <<EOF >get-wings-flags
  6274. #!/bin/sh
  6275.  
  6276. prefix="$prefix"
  6277. exec_prefix=\$prefix
  6278.  
  6279. WCFLAGS="-I\$prefix/include $inc_search_path"
  6280. WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
  6281. WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
  6282.  
  6283. usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
  6284.  
  6285. if test \$# -eq 0; then
  6286.       echo "\${usage}" 1>&2
  6287.       exit 1
  6288. fi
  6289.  
  6290. while test \$# -gt 0; do
  6291.   case \$1 in
  6292.     --cflags)
  6293.     echo \$WCFLAGS
  6294.         ;;
  6295.     --ldflags|--lflags)
  6296.     echo \$WLFLAGS
  6297.         ;;
  6298.     --libs)
  6299.     echo \$WLIBS
  6300.         ;;
  6301.     *)
  6302.         echo "\${usage}" 1>&2
  6303.         exit 1
  6304.           ;;
  6305.   esac
  6306.   shift
  6307. done
  6308.  
  6309.  
  6310. EOF
  6311.  
  6312. cat <<EOF >get-wutil-flags
  6313. #!/bin/sh
  6314.  
  6315. prefix="$prefix"
  6316. exec_prefix=\$prefix
  6317.  
  6318. WCFLAGS="-I\$prefix/include $inc_search_path"
  6319. WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
  6320. WLIBS="-lWUtil $NETLIBS -lPropList"
  6321.  
  6322. usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
  6323.  
  6324. if test \$# -eq 0; then
  6325.       echo "\${usage}" 1>&2
  6326.       exit 1
  6327. fi
  6328.  
  6329. while test \$# -gt 0; do
  6330.   case \$1 in
  6331.     --cflags)
  6332.     echo \$WCFLAGS
  6333.         ;;
  6334.     --ldflags|--lflags)
  6335.     echo \$WLFLAGS
  6336.         ;;
  6337.     --libs)
  6338.     echo \$WLIBS
  6339.         ;;
  6340.     *)
  6341.         echo "\${usage}" 1>&2
  6342.         exit 1
  6343.           ;;
  6344.   esac
  6345.   shift
  6346. done
  6347.  
  6348.  
  6349. EOF
  6350.  
  6351. sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
  6352. sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
  6353. sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
  6354.  
  6355. chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
  6356.  
  6357. rm -f get-wraster-flags get-wings-flags get-wutil-flags
  6358.  
  6359.  
  6360.  
  6361. supported_gfx="$supported_gfx builtin-PPM"
  6362.  
  6363. if test "x$MOFILES" = "x"; then
  6364.     mof=none
  6365. else
  6366.     mof=$MOFILES
  6367. fi
  6368.  
  6369.  
  6370. echo
  6371. echo "Window Maker was configured as follows:"
  6372. echo
  6373. echo "Installation path prefix: $prefix"
  6374. echo "Installation path prefix for binaries: $_bindir"
  6375. echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
  6376. echo "Graphic format libraries: $supported_gfx"
  6377. echo "Sound support: $sound"
  6378. echo "Translated message files to install: $mof"
  6379. if test "x$MOFILES" != "x"; then
  6380.     echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
  6381. fi
  6382.  
  6383.  
  6384. if test "x$ac_cv_header_jpeglib_h" != xyes; then
  6385. echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
  6386. echo
  6387. echo "JPEG support will not be included because the JPEG library is"
  6388. echo "not installed correctly or was not found. Background images"
  6389. echo "from themes will not display as they usually are JPEG files."
  6390. echo
  6391. echo "To fix, download and install the jpeg library and/or make sure you"
  6392. echo "installed all jpeg related packages, SPECIALLY the development packages"
  6393. echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
  6394. echo
  6395. echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
  6396. fi
  6397.  
  6398.  
  6399.  
  6400.